1 error[E0308]: mismatched types
2 --> $DIR/regions-infer-invariance-due-to-mutability-4.rs:21:5
4 LL | b_isize //~ ERROR mismatched types
5 | ^^^^^^^ lifetime mismatch
7 = note: expected type `Invariant<'static>`
8 found type `Invariant<'r>`
9 note: the lifetime 'r as defined on the function body at 20:23...
10 --> $DIR/regions-infer-invariance-due-to-mutability-4.rs:20:23
12 LL | fn to_longer_lifetime<'r>(b_isize: Invariant<'r>) -> Invariant<'static> {
14 = note: ...does not necessarily outlive the static lifetime
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.