2018-10-30 15:57:52 -05:00
|
|
|
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'de` due to conflicting requirements
|
2018-09-20 12:56:11 -05:00
|
|
|
--> $DIR/hrtb-cache-issue-54302.rs:19:5
|
|
|
|
|
|
|
|
|
LL | assert_deserialize_owned::<&'static str>(); //~ ERROR
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-10-30 15:57:52 -05:00
|
|
|
= note: first, the lifetime cannot outlive lifetime RePlaceholder(Placeholder { universe: U2, name: BrNamed(crate0:DefIndex(1:12), 'de) })...
|
|
|
|
= note: ...but the lifetime must also be valid for the static lifetime...
|
|
|
|
= note: ...so that the types are compatible:
|
|
|
|
expected Deserialize<'de>
|
|
|
|
found Deserialize<'_>
|
2018-09-20 12:56:11 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-10-30 15:57:52 -05:00
|
|
|
For more information about this error, try `rustc --explain E0495`.
|