fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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`.