]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/dropck_misc_variants.stderr
Auto merge of #57018 - dcreager:redundant-linker, r=alexcrichton
[rust.git] / src / test / ui / span / dropck_misc_variants.stderr
1 error[E0597]: `bomb` does not live long enough
2   --> $DIR/dropck_misc_variants.rs:23:37
3    |
4 LL |     _w = Wrap::<&[&str]>(NoisyDrop(&bomb));
5    |                                     ^^^^ borrowed value does not live long enough
6 LL | }
7    | - `bomb` dropped here while still borrowed
8    |
9    = note: values in a scope are dropped in the opposite order they are created
10
11 error[E0597]: `v` does not live long enough
12   --> $DIR/dropck_misc_variants.rs:31:28
13    |
14 LL |         let u = NoisyDrop(&v);
15    |                            ^ borrowed value does not live long enough
16 ...
17 LL | }
18    | - `v` dropped here while still borrowed
19    |
20    = note: values in a scope are dropped in the opposite order they are created
21
22 error: aborting due to 2 previous errors
23
24 For more information about this error, try `rustc --explain E0597`.