]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-24895-copy-clone-dropck.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.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:27: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`.