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
435 B15 linesraw
1error[E0597]: `l` does not live long enough
2  --> $DIR/promoted-bounds.rs:19:17
3   |
4LL |     let ptr = {
5   |         --- borrow later stored here
6LL |         let l = 3;
7LL |         let b = &l;
8   |                 ^^ borrowed value does not live long enough
9...
10LL |     };
11   |     - `l` dropped here while still borrowed
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0597`.