1 error[E0597]: `x` does not live long enough (Ast)
2 --> $DIR/issue-46471.rs:15:6
5 | ^ borrowed value does not live long enough
8 | - borrowed value only lives until here
10 = note: borrowed value must be valid for the static lifetime...
12 error[E0597]: `x` does not live long enough (Mir)
13 --> $DIR/issue-46471.rs:15:5
16 | ^^ borrowed value does not live long enough
19 | - `x` dropped here while still borrowed
21 = note: borrowed value must be valid for the static lifetime...
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0597`.