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

26 lines
669 B
Plaintext
Raw Normal View History

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
| ^^ borrowed value does not live long enough
2017-12-08 09:20:45 -06:00
...
2018-02-22 18:42:32 -06:00
LL | }
| - `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`.