fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
406 B14 linesraw
1error[E0597]: `b` does not live long enough
2  --> $DIR/mut-ptr-cant-outlive-ref.rs:8:15
3   |
4LL |         p = &*b;
5   |               ^ borrowed value does not live long enough
6LL |     }
7   |     - `b` dropped here while still borrowed
8LL |
9LL |     p.use_ref();
10   |     - borrow later used here
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0597`.