rust/src/test/ui/issues/issue-18118.stderr

14 lines
433 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0597]: `p` does not live long enough
--> $DIR/issue-18118.rs:4:10
2018-07-15 16:11:54 -05:00
|
LL | &p //~ ERROR `p` does not live long enough
| ^ borrowed value does not live long enough
LL | };
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to previous error
2018-07-15 16:11:54 -05:00
For more information about this error, try `rustc --explain E0597`.