fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `d1` does not live long enough 2 --> $DIR/issue-24895-copy-clone-dropck.rs:27:14 3 | 4LL | let (d2, d1); 5 | -- binding `d1` declared here 6LL | d1 = D(34, "d1"); 7LL | d2 = D(S(&d1, "inner"), "d2"); 8 | ^^^ borrowed value does not live long enough 9LL | } 10 | - 11 | | 12 | `d1` dropped here while still borrowed 13 | borrow might be used here, when `d2` is dropped and runs the `Drop` code for type `D` 14 | 15 = note: values in a scope are dropped in the opposite order they are defined 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0597`.