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