blob: ac974afa13a1e5b432e5c60cceb98a7282de71a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
error[E0597]: `x` does not live long enough (Ast)
--> $DIR/issue-46471.rs:15:6
|
LL | &x
| ^ borrowed value does not live long enough
...
LL | }
| - 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
|
LL | &x
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0597`.
|