2017-12-08 09:20:45 -06:00
|
|
|
error[E0597]: `x` does not live long enough (Ast)
|
|
|
|
--> $DIR/issue-46471.rs:15:6
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &x
|
2017-12-13 19:27:23 -06:00
|
|
|
| ^ borrowed value does not live long enough
|
2017-12-08 09:20:45 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2017-12-08 09:20:45 -06:00
|
|
|
| - borrowed value only lives until here
|
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error[E0597]: `x` does not live long enough (Mir)
|
|
|
|
--> $DIR/issue-46471.rs:15:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &x
|
2017-12-14 11:57:34 -06:00
|
|
|
| ^^ borrowed value does not live long enough
|
2017-12-08 09:20:45 -06:00
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `x` dropped here while still borrowed
|
2017-12-08 09:20:45 -06:00
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|