fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
438 B12 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-infer-invariance-due-to-mutability-4.rs:10:5
3   |
4LL | fn to_longer_lifetime<'r>(b_isize: Invariant<'r>) -> Invariant<'static> {
5   |                       -- lifetime `'r` defined here
6LL |     b_isize
7   |     ^^^^^^^ returning this value requires that `'r` must outlive `'static`
8   |
9   = help: consider replacing `'r` with `'static`
10
11error: aborting due to previous error
12