]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `bomb` does not live long enough |
48663c56 | 2 | --> $DIR/dropck_misc_variants.rs:23:36 |
c30ab7b3 | 3 | | |
0531ce1d | 4 | LL | _w = Wrap::<&[&str]>(NoisyDrop(&bomb)); |
48663c56 | 5 | | ^^^^^ borrowed value does not live long enough |
0531ce1d | 6 | LL | } |
48663c56 XL |
7 | | - |
8 | | | | |
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]>` | |
c30ab7b3 | 11 | | |
48663c56 | 12 | = note: values in a scope are dropped in the opposite order they are defined |
c30ab7b3 | 13 | |
7cac9316 | 14 | error[E0597]: `v` does not live long enough |
48663c56 | 15 | --> $DIR/dropck_misc_variants.rs:31:27 |
c30ab7b3 | 16 | | |
0531ce1d | 17 | LL | let u = NoisyDrop(&v); |
48663c56 | 18 | | ^^ borrowed value does not live long enough |
c30ab7b3 | 19 | ... |
0531ce1d | 20 | LL | } |
48663c56 XL |
21 | | - |
22 | | | | |
23 | | `v` dropped here while still borrowed | |
24 | | borrow might be used here, when `_w` is dropped and runs the destructor for closure | |
c30ab7b3 | 25 | | |
48663c56 | 26 | = note: values in a scope are dropped in the opposite order they are defined |
c30ab7b3 | 27 | |
041b39d2 | 28 | error: aborting due to 2 previous errors |
c30ab7b3 | 29 | |
0531ce1d | 30 | For more information about this error, try `rustc --explain E0597`. |