]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/mut-ptr-cant-outlive-ref.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / mut-ptr-cant-outlive-ref.stderr
1 error[E0597]: `b` does not live long enough
2   --> $DIR/mut-ptr-cant-outlive-ref.rs:8:15
3    |
4 LL |         p = &*b;
5    |               ^ borrowed value does not live long enough
6 LL |     }
7    |     - `b` dropped here while still borrowed
8 LL |
9 LL |     p.use_ref();
10    |     - borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.