]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/dropck_misc_variants.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / span / dropck_misc_variants.stderr
CommitLineData
7cac9316 1error[E0597]: `bomb` does not live long enough
48663c56 2 --> $DIR/dropck_misc_variants.rs:23:36
c30ab7b3 3 |
0531ce1d 4LL | _w = Wrap::<&[&str]>(NoisyDrop(&bomb));
48663c56 5 | ^^^^^ borrowed value does not live long enough
0531ce1d 6LL | }
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 14error[E0597]: `v` does not live long enough
48663c56 15 --> $DIR/dropck_misc_variants.rs:31:27
c30ab7b3 16 |
0531ce1d 17LL | let u = NoisyDrop(&v);
48663c56 18 | ^^ borrowed value does not live long enough
c30ab7b3 19...
0531ce1d 20LL | }
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 28error: aborting due to 2 previous errors
c30ab7b3 29
0531ce1d 30For more information about this error, try `rustc --explain E0597`.