]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/dropck_direct_cycle_with_drop.stderr
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / ui / span / dropck_direct_cycle_with_drop.stderr
1 error: `d2` does not live long enough
2 --> $DIR/dropck_direct_cycle_with_drop.rs:48:1
3 |
4 46 | d1.p.set(Some(&d2));
5 | -- borrow occurs here
6 47 | d2.p.set(Some(&d1));
7 48 | }
8 | ^ `d2` dropped here while still borrowed
9 |
10 = note: values in a scope are dropped in the opposite order they are created
11
12 error: `d1` does not live long enough
13 --> $DIR/dropck_direct_cycle_with_drop.rs:48:1
14 |
15 47 | d2.p.set(Some(&d1));
16 | -- borrow occurs here
17 48 | }
18 | ^ `d1` 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