rust/src/test/ui/span/issue-36537.stderr

13 lines
340 B
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: `a` does not live long enough
--> $DIR/issue-36537.rs:15:1
|
14 | p = &a; //~ NOTE borrow occurs here
| - borrow occurs here
15 | }
| ^ `a` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to previous error(s)