fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
664 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/regions-infer-invariance-due-to-mutability-4.rs:10:5
3   |
4LL |     b_isize
5   |     ^^^^^^^ lifetime mismatch
6   |
7   = note: expected struct `Invariant<'static>`
8              found struct `Invariant<'r>`
9note: the lifetime `'r` as defined on the function body at 9:23...
10  --> $DIR/regions-infer-invariance-due-to-mutability-4.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`.