]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/mut-ptr-cant-outlive-ref.nll.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / span / mut-ptr-cant-outlive-ref.nll.stderr
CommitLineData
94b46f34
XL
1error[E0597]: `b` does not live long enough
2 --> $DIR/mut-ptr-cant-outlive-ref.rs:18:15
83c7162d 3 |
94b46f34
XL
4LL | p = &*b;
5 | ^ borrowed value does not live long enough
6LL | }
7 | - borrowed value only lives until here
8LL | //~^^ ERROR `b` does not live long enough
9LL | p.use_ref();
10 | - borrow later used here
83c7162d
XL
11
12error: aborting due to previous error
13
94b46f34 14For more information about this error, try `rustc --explain E0597`.