1 error[E0597]: `d1` does not live long enough
2 --> $DIR/issue-24805-dropck-trait-has-items.rs:37:27
4 LL | _d = D_HasSelfMethod(&d1);
5 | ^^ borrowed value does not live long enough
7 | - `d1` dropped here while still borrowed
9 = note: values in a scope are dropped in the opposite order they are created
11 error[E0597]: `d1` does not live long enough
12 --> $DIR/issue-24805-dropck-trait-has-items.rs:43:34
14 LL | _d = D_HasMethodWithSelfArg(&d1);
15 | ^^ borrowed value does not live long enough
17 | - `d1` dropped here while still borrowed
19 = note: values in a scope are dropped in the opposite order they are created
21 error[E0597]: `d1` does not live long enough
22 --> $DIR/issue-24805-dropck-trait-has-items.rs:49:21
24 LL | _d = D_HasType(&d1);
25 | ^^ borrowed value does not live long enough
27 | - `d1` dropped here while still borrowed
29 = note: values in a scope are dropped in the opposite order they are created
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0597`.