Build Fails
cargo build --release
Compiling rustc-serialize v0.3.24
Compiling syn v1.0.56
error[E0310]: the parameter type T may not live long enough
--> /home/taco/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustc-serialize-0.3.24/src/serialize.rs:1155:5
|
1155 | fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| the parameter type T must be valid for the static lifetime...
| ...so that the type T will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> /rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/alloc/src/borrow.rs:179:30
help: consider adding an explicit lifetime bound
|
1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
| +++++++++
Compiling phf_shared v0.7.24
Compiling serde v1.0.81
Compiling memchr v2.2.1
For more information about this error, try rustc --explain E0310.
error: could not compile rustc-serialize (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...