1 error[E0597]: `a` does not live long enough
2 --> $DIR/issue-46036.rs:8:24
4 LL | let foo = Foo { x: &a };
7 | borrowed value does not live long enough
8 | requires that `a` is borrowed for `'static`
11 | - `a` dropped here while still borrowed
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0597`.