fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: mismatched types 2 --> $DIR/regions-infer-invariance-due-to-mutability-3.rs:10:5 3 | 4LL | b_isize 5 | ^^^^^^^ lifetime mismatch 6 | 7 = note: expected type `Invariant<'static>` 8 found type `Invariant<'r>` 9note: the lifetime 'r as defined on the function body at 9:23... 10 --> $DIR/regions-infer-invariance-due-to-mutability-3.rs:9:23 11 | 12LL | fn to_longer_lifetime<'r>(b_isize: Invariant<'r>) -> Invariant<'static> { 13 | ^^ 14 = note: ...does not necessarily outlive the static lifetime 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0308`.