2017-12-08 15:20:45 +00:00
|
|
|
error[E0597]: `x` does not live long enough (Ast)
|
|
|
|
--> $DIR/issue-46471.rs:15:6
|
|
|
|
|
|
|
|
|
15 | &x
|
2017-12-14 01:27:23 +00:00
|
|
|
| ^ borrowed value does not live long enough
|
2017-12-08 15:20:45 +00:00
|
|
|
...
|
|
|
|
18 | }
|
|
|
|
| - 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
|
|
|
|
|
|
|
|
|
15 | &x
|
2017-12-14 17:57:34 +00:00
|
|
|
| ^^ borrowed value does not live long enough
|
2017-12-08 15:20:45 +00:00
|
|
|
...
|
|
|
|
18 | }
|
2018-01-13 23:28:00 +00:00
|
|
|
| - borrowed value only lives until here
|
2017-12-08 15:20:45 +00:00
|
|
|
|
|
|
|
|
= note: borrowed value must be valid for the static lifetime...
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 20:40:25 +00:00
|
|
|
If you want more information on this error, try using "rustc --explain E0597"
|