1 error[E0597]: `a` does not live long enough
2 --> $DIR/issue-46036.rs:19:24
4 LL | let foo = Foo { x: &a }; //~ ERROR E0597
5 | ^^ borrowed value does not live long enough
8 | - `a` dropped here while still borrowed
10 = note: borrowed value must be valid for the static lifetime...
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0597`.