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