1 error[E0597]: `bomb` does not live long enough
2 --> $DIR/dropck_misc_variants.rs:23:36
4 LL | _w = Wrap::<&[&str]>(NoisyDrop(&bomb));
5 | ^^^^^ borrowed value does not live long enough
9 | `bomb` dropped here while still borrowed
10 | borrow might be used here, when `_w` is dropped and runs the destructor for type `Wrap<&[&str]>`
12 = note: values in a scope are dropped in the opposite order they are defined
14 error[E0597]: `v` does not live long enough
15 --> $DIR/dropck_misc_variants.rs:31:27
17 LL | let u = NoisyDrop(&v);
18 | ^^ borrowed value does not live long enough
23 | `v` dropped here while still borrowed
24 | borrow might be used here, when `_w` is dropped and runs the destructor for closure
26 = note: values in a scope are dropped in the opposite order they are defined
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0597`.