rust/src/test/ui/hrtb/hrtb-cache-issue-54302.stderr

16 lines
728 B
Plaintext
Raw Normal View History

error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'de` due to conflicting requirements
--> $DIR/hrtb-cache-issue-54302.rs:19:5
|
LL | assert_deserialize_owned::<&'static str>(); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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<'_>
error: aborting due to previous error
For more information about this error, try `rustc --explain E0495`.