]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/issue-25199.stderr
New upstream version 1.20.0+dfsg1
[rustc.git] / src / test / ui / span / issue-25199.stderr
1 error[E0597]: `container` does not live long enough
2 --> $DIR/issue-25199.rs:83:1
3 |
4 80 | let test = Test{test: &container};
5 | --------- borrow occurs here
6 ...
7 83 | }
8 | ^ `container` 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]: `container` does not live long enough
13 --> $DIR/issue-25199.rs:83:1
14 |
15 82 | container.store(test);
16 | --------- borrow occurs here
17 83 | }
18 | ^ `container` 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