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

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: `d1` does not live long enough
2017-12-13 19:27:23 -06:00
--> $DIR/issue-24805-dropck-trait-has-items.rs:47:27
|
47 | _d = D_HasSelfMethod(&d1);
2017-12-13 19:27:23 -06:00
| ^^ borrowed value does not live long enough
48 | }
2017-12-13 19:27:23 -06:00
| - `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
2017-12-13 19:27:23 -06:00
--> $DIR/issue-24805-dropck-trait-has-items.rs:53:34
|
53 | _d = D_HasMethodWithSelfArg(&d1);
2017-12-13 19:27:23 -06:00
| ^^ borrowed value does not live long enough
54 | }
2017-12-13 19:27:23 -06:00
| - `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
2017-12-13 19:27:23 -06:00
--> $DIR/issue-24805-dropck-trait-has-items.rs:59:21
|
59 | _d = D_HasType(&d1);
2017-12-13 19:27:23 -06:00
| ^^ borrowed value does not live long enough
60 | }
2017-12-13 19:27:23 -06:00
| - `d1` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to 3 previous errors