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-28 01:58:52 +08:00
error[E0597]: `a` does not live long enough
--> $DIR/issue-36537.rs:5:13
|
2023-01-15 11:06:44 +08: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 22:59:40 +08:00
For more information about this error, try `rustc --explain E0597`.