1 error[E0597]: `x` does not live long enough
2 --> $DIR/vec_refs_data_with_early_death.rs:17:12
5 | - binding `x` declared here
8 | ^^ borrowed value does not live long enough
13 | `x` dropped here while still borrowed
14 | borrow might be used here, when `v` is dropped and runs the `Drop` code for type `Bag`
16 = note: values in a scope are dropped in the opposite order they are defined
18 error[E0597]: `y` does not live long enough
19 --> $DIR/vec_refs_data_with_early_death.rs:19:12
22 | - binding `y` declared here
25 | ^^ borrowed value does not live long enough
30 | `y` dropped here while still borrowed
31 | borrow might be used here, when `v` is dropped and runs the `Drop` code for type `Bag`
33 = note: values in a scope are dropped in the opposite order they are defined
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0597`.