blob: cd0a18a892f206307749a9240e0f4094ab6ef3d5 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/regions-infer-covariance-due-to-decl.rs:22:32
|
LL | fn use_<'short,'long>(c: Covariant<'long>,
| ----------------
LL | s: &'short isize,
| ------------- these two types are declared with different lifetimes...
...
LL | let _: Covariant<'short> = c;
| ^ ...but data from `s` flows into `c` here
error: aborting due to previous error