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
461 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-48238.rs:9:13
3   |
4LL |     move || use_val(&orig);
5   |     ------- ^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'2`
6   |     |     |
7   |     |     return type of closure is &'2 u8
8   |     lifetime `'1` represents this closure's body
9   |
10   = note: closure implements `Fn`, so references to captured variables can't escape the closure
11
12error: aborting due to previous error
13