]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/dropck_misc_variants.stderr
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[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:36
3    |
4 LL |     _w = Wrap::<&[&str]>(NoisyDrop(&bomb));
5    |                                    ^^^^^ borrowed value does not live long enough
6 LL | }
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]>`
11    |
12    = note: values in a scope are dropped in the opposite order they are defined
13
14 error[E0597]: `v` does not live long enough
15   --> $DIR/dropck_misc_variants.rs:31:27
16    |
17 LL |         let u = NoisyDrop(&v);
18    |                           ^^ borrowed value does not live long enough
19 ...
20 LL | }
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
25    |
26    = note: values in a scope are dropped in the opposite order they are defined
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0597`.