2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `d1` does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
--> $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
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `d1` does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
--> $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
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `d1` does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
--> $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-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2016-10-14 10:55:45 -05:00
|
|
|
|