rust/tests/ui/span/issue-36537.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
462 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:5:13
|
2023-01-14 21:06:44 -06:00
LL | let a = 42;
| - binding `a` declared here
LL | p = &a;
| ^^ borrowed value does not live long enough
...
LL | }
| - `a` dropped here while still borrowed
LL | p.use_ref();
| - borrow later used here
error: aborting due to 1 previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0597`.