1 error[E0597]: `y` does not live long enough
2 --> $DIR/capture-ref-in-struct.rs:18:16
5 | - binding `y` declared here
8 | ^^ borrowed value does not live long enough
11 | - `y` dropped here while still borrowed
14 | - borrow later used here
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.