summary refs log tree commit diff
path: root/src/test/ui/span/dropck_misc_variants.nll.stderr
blob: 0eeec8e51beaac36f63dae5510e3ae563bf6f4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error[E0597]: `bomb` does not live long enough
  --> $DIR/dropck_misc_variants.rs:33:36
   |
LL |     _w = Wrap::<&[&str]>(NoisyDrop(&bomb));
   |                                    ^^^^^ borrowed value does not live long enough
LL | }
   | -
   | |
   | borrowed value only lives until here
   | borrow later used here, when `_w` is dropped

error[E0597]: `v` does not live long enough
  --> $DIR/dropck_misc_variants.rs:41:27
   |
LL |         let u = NoisyDrop(&v);
   |                           ^^ borrowed value does not live long enough
...
LL | }
   | -
   | |
   | borrowed value only lives until here
   | borrow later used here, when `_w` is dropped

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0597`.