blob: 44199881444ad24699465c64e97aa1b962593328 [file] [log] [blame]
error[E0623]: lifetime mismatch
--> $DIR/regions-variance-contravariant-use-covariant.rs:23:35
|
LL | fn use_<'short,'long>(c: Contravariant<'short>,
| --------------------- these two types are declared with different lifetimes...
LL | s: &'short isize,
LL | l: &'long isize,
| ------------
...
LL | let _: Contravariant<'long> = c;
| ^ ...but data from `c` flows into `l` here
error: aborting due to previous error