2016-10-14 10:55:45 -05:00
|
|
|
error: `d1` does not live long enough
|
|
|
|
--> $DIR/issue-24805-dropck-trait-has-items.rs:48:1
|
|
|
|
|
|
|
|
|
47 | _d = D_HasSelfMethod(&d1);
|
|
|
|
| -- borrow occurs here
|
|
|
|
48 | }
|
|
|
|
| ^ `d1` dropped here while still borrowed
|
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
|
|
|
error: `d1` does not live long enough
|
|
|
|
--> $DIR/issue-24805-dropck-trait-has-items.rs:54:1
|
|
|
|
|
|
|
|
|
53 | _d = D_HasMethodWithSelfArg(&d1);
|
|
|
|
| -- borrow occurs here
|
|
|
|
54 | }
|
|
|
|
| ^ `d1` dropped here while still borrowed
|
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
|
|
|
error: `d1` does not live long enough
|
|
|
|
--> $DIR/issue-24805-dropck-trait-has-items.rs:60:1
|
|
|
|
|
|
|
|
|
59 | _d = D_HasType(&d1);
|
|
|
|
| -- borrow occurs here
|
|
|
|
60 | }
|
|
|
|
| ^ `d1` dropped here while still borrowed
|
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-22 06:46:05 -05:00
|
|
|
error: aborting due to previous error(s)
|
2016-10-14 10:55:45 -05:00
|
|
|
|