summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0597.nll.stderr
blob: 56119e4226e60e52d11ff0143c2ca6c2959b63d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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