fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
470 B16 linesraw
1error[E0597]: `x` does not live long enough
2  --> $DIR/unboxed-closure-region.rs:8:12
3   |
4LL |     let _f = {
5   |         -- borrow later stored here
6LL |         let x = 0;
7LL |         || x
8   |         -- ^ borrowed value does not live long enough
9   |         |
10   |         value captured here
11LL |     };
12   |     - `x` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.