]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/issue-24895-copy-clone-dropck.stderr
Update upstream source from tag 'upstream/1.26.0+dfsg1'
[rustc.git] / src / test / ui / span / issue-24895-copy-clone-dropck.stderr
1 error[E0597]: `d1` does not live long enough
2 --> $DIR/issue-24895-copy-clone-dropck.rs:37:15
3 |
4 LL | d2 = D(S(&d1, "inner"), "d2");
5 | ^^ borrowed value does not live long enough
6 LL | }
7 | - `d1` dropped here while still borrowed
8 |
9 = note: values in a scope are dropped in the opposite order they are created
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.