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
470 B
Plaintext
Raw Normal View History

2017-05-27 19:58:52 +02:00
error[E0597]: `a` does not live long enough
--> $DIR/issue-36537.rs:5:13
|
2023-01-15 03:06:44 +00: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();
2021-09-16 15:01:22 -05:00
| ----------- borrow later used here
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0597`.