blob: 3a807b755afe3a65def4f8323b81bb805fa0e5fe [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/regions-infer-invariance-due-to-mutability-3.rs:21:5
|
LL | b_isize //~ ERROR mismatched types
| ^^^^^^^ lifetime mismatch
|
= note: expected type `invariant<'static>`
found type `invariant<'r>`
note: the lifetime 'r as defined on the function body at 20:23...
--> $DIR/regions-infer-invariance-due-to-mutability-3.rs:20:23
|
LL | fn to_longer_lifetime<'r>(b_isize: invariant<'r>) -> invariant<'static> {
| ^^
= note: ...does not necessarily outlive the static lifetime
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.