]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/dropck_vec_cycle_checked.stderr
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / ui / span / dropck_vec_cycle_checked.stderr
1 error: `c2` does not live long enough
2 --> $DIR/dropck_vec_cycle_checked.rs:116:1
3 |
4 110 | c1.v[0].v.set(Some(&c2));
5 | -- borrow occurs here
6 ...
7 116 | }
8 | ^ `c2` dropped here while still borrowed
9 |
10 = note: values in a scope are dropped in the opposite order they are created
11
12 error: `c3` does not live long enough
13 --> $DIR/dropck_vec_cycle_checked.rs:116:1
14 |
15 111 | c1.v[1].v.set(Some(&c3));
16 | -- borrow occurs here
17 ...
18 116 | }
19 | ^ `c3` dropped here while still borrowed
20 |
21 = note: values in a scope are dropped in the opposite order they are created
22
23 error: `c2` does not live long enough
24 --> $DIR/dropck_vec_cycle_checked.rs:116:1
25 |
26 112 | c2.v[0].v.set(Some(&c2));
27 | -- borrow occurs here
28 ...
29 116 | }
30 | ^ `c2` dropped here while still borrowed
31 |
32 = note: values in a scope are dropped in the opposite order they are created
33
34 error: `c3` does not live long enough
35 --> $DIR/dropck_vec_cycle_checked.rs:116:1
36 |
37 113 | c2.v[1].v.set(Some(&c3));
38 | -- borrow occurs here
39 ...
40 116 | }
41 | ^ `c3` dropped here while still borrowed
42 |
43 = note: values in a scope are dropped in the opposite order they are created
44
45 error: `c1` does not live long enough
46 --> $DIR/dropck_vec_cycle_checked.rs:116:1
47 |
48 114 | c3.v[0].v.set(Some(&c1));
49 | -- borrow occurs here
50 115 | c3.v[1].v.set(Some(&c2));
51 116 | }
52 | ^ `c1` dropped here while still borrowed
53 |
54 = note: values in a scope are dropped in the opposite order they are created
55
56 error: `c2` does not live long enough
57 --> $DIR/dropck_vec_cycle_checked.rs:116:1
58 |
59 115 | c3.v[1].v.set(Some(&c2));
60 | -- borrow occurs here
61 116 | }
62 | ^ `c2` dropped here while still borrowed
63 |
64 = note: values in a scope are dropped in the opposite order they are created
65
66 error: aborting due to 6 previous errors
67