fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0597]: `d1` does not live long enough 2 --> $DIR/issue-24805-dropck-child-has-items-via-parent.rs:28:18 3 | 4LL | _d = D_Child(&d1); 5 | ^^^ borrowed value does not live long enough 6... 7LL | } 8 | - 9 | | 10 | `d1` dropped here while still borrowed 11 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_Child` 12 | 13 = note: values in a scope are dropped in the opposite order they are defined 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0597`.