2018-07-15 16:11:54 -05:00
|
|
|
error[E0597]: `p` does not live long enough
|
2018-12-28 13:05:22 -06:00
|
|
|
--> $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...
|
|
|
|
|
2018-12-28 13:05:22 -06:00
|
|
|
error: aborting due to previous error
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2018-12-28 13:05:22 -06:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|