fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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