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

26 lines
678 B
Plaintext
Raw Normal View History

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
| ^^ borrowed value does not live long enough
2017-12-08 15:20:45 +00:00
...
18 | }
| - 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"