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 | - borrowed value only lives until here
21 = note: borrowed value must be valid for the static lifetime...
23 error: aborting due to 2 previous errors