error: compilation successful --> $DIR/E0597.rs:15:1 | LL | / fn main() { #![rustc_error] // rust-lang/rust#49855 LL | | let mut x = Foo { x: None }; LL | | let y = 0; LL | | x.x = Some(&y); LL | | //~^ `y` does not live long enough [E0597] LL | | } | |_^ error: aborting due to previous error