rust/src/test/ui/span/issue-24805-dropck-trait-has-items.stderr

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: `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
2017-05-27 12:58:52 -05:00
error[E0597]: `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
2017-05-27 12:58:52 -05:00
error[E0597]: `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
error: aborting due to previous error(s)