blob: e7a5db671bf6b6df56423e2466cc3c8a9878616a [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/regions-variance-invariant-use-covariant.rs:17:33
|
LL | let _: Invariant<'static> = c;
| ^ lifetime mismatch
|
= note: expected struct `Invariant<'static>`
found struct `Invariant<'b>`
note: the lifetime `'b` as defined on the function body at 11:9...
--> $DIR/regions-variance-invariant-use-covariant.rs:11:9
|
LL | fn use_<'b>(c: Invariant<'b>) {
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.