]> git.proxmox.com Git - rustc.git/blame - tests/ui/span/issue-36537.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / ui / span / issue-36537.stderr
CommitLineData
7cac9316 1error[E0597]: `a` does not live long enough
60c5eb7d 2 --> $DIR/issue-36537.rs:5:13
c30ab7b3 3 |
9ffffee4
FG
4LL | let a = 42;
5 | - binding `a` declared here
94b46f34 6LL | p = &a;
60c5eb7d 7 | ^^ borrowed value does not live long enough
94b46f34
XL
8...
9LL | }
10 | - `a` dropped here while still borrowed
48663c56 11LL | p.use_ref();
add651ee 12 | - borrow later used here
c30ab7b3 13
041b39d2 14error: aborting due to previous error
c30ab7b3 15
0531ce1d 16For more information about this error, try `rustc --explain E0597`.