1 error[E0597]: `d1` does not live long enough
2 --> $DIR/issue-24805-dropck-trait-has-items.rs:37:26
4 LL | _d = D_HasSelfMethod(&d1);
5 | ^^^ borrowed value does not live long enough
9 | `d1` dropped here while still borrowed
10 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasSelfMethod`
12 = note: values in a scope are dropped in the opposite order they are defined
14 error[E0597]: `d1` does not live long enough
15 --> $DIR/issue-24805-dropck-trait-has-items.rs:43:33
17 LL | _d = D_HasMethodWithSelfArg(&d1);
18 | ^^^ borrowed value does not live long enough
22 | `d1` dropped here while still borrowed
23 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasMethodWithSelfArg`
25 = note: values in a scope are dropped in the opposite order they are defined
27 error[E0597]: `d1` does not live long enough
28 --> $DIR/issue-24805-dropck-trait-has-items.rs:49:20
30 LL | _d = D_HasType(&d1);
31 | ^^^ borrowed value does not live long enough
35 | `d1` dropped here while still borrowed
36 | borrow might be used here, when `_d` is dropped and runs the `Drop` code for type `D_HasType`
38 = note: values in a scope are dropped in the opposite order they are defined
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0597`.