1 error[E0597]: `y` does not live long enough
2 --> $DIR/capture-ref-in-struct.rs:33:16
5 | ^^ borrowed value does not live long enough
8 | - borrowed value only lives until here
11 | - borrow later used here
13 error: aborting due to previous error
15 If you want more information on this error, try using "rustc --explain E0597"