fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
432 B13 linesraw
1error[E0597]: `x` does not live long enough
2  --> $DIR/regions-escape-loop-via-variable.rs:11:13
3   |
4LL |         let x = 1 + *p;
5   |                     -- borrow later used here
6LL |         p = &x;
7   |             ^^ borrowed value does not live long enough
8LL |     }
9   |     - `x` dropped here while still borrowed
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0597`.