]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/dropck_vec_cycle_checked.nll.stderr
New upstream version 1.29.0+dfsg1
[rustc.git] / src / test / ui / span / dropck_vec_cycle_checked.nll.stderr
1 error[E0597]: `c3` does not live long enough
2 --> $DIR/dropck_vec_cycle_checked.rs:115:24
3 |
4 LL | c1.v[1].v.set(Some(&c3));
5 | ^^^ borrowed value does not live long enough
6 ...
7 LL | }
8 | -
9 | |
10 | `c3` dropped here while still borrowed
11 | borrow later used here, when `c1` is dropped
12
13 error[E0597]: `c2` does not live long enough
14 --> $DIR/dropck_vec_cycle_checked.rs:113:24
15 |
16 LL | c1.v[0].v.set(Some(&c2));
17 | ^^^ borrowed value does not live long enough
18 ...
19 LL | }
20 | -
21 | |
22 | `c2` dropped here while still borrowed
23 | borrow later used here, when `c1` is dropped
24
25 error[E0597]: `c1` does not live long enough
26 --> $DIR/dropck_vec_cycle_checked.rs:121:24
27 |
28 LL | c3.v[0].v.set(Some(&c1));
29 | ^^^ borrowed value does not live long enough
30 ...
31 LL | }
32 | -
33 | |
34 | `c1` dropped here while still borrowed
35 | borrow later used here, when `c1` is dropped
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0597`.