]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-24805-dropck-trait-has-items.stderr
Rollup merge of #56217 - frewsxcv:frewsxcv-float-parse, r=QuietMisdreavus
[rust.git] / src / test / ui / span / issue-24805-dropck-trait-has-items.stderr
1 error[E0597]: `d1` does not live long enough
2   --> $DIR/issue-24805-dropck-trait-has-items.rs:37:27
3    |
4 LL |     _d = D_HasSelfMethod(&d1);
5    |                           ^^ borrowed value does not live long enough
6 LL | }
7    | - `d1` dropped here while still borrowed
8    |
9    = note: values in a scope are dropped in the opposite order they are created
10
11 error[E0597]: `d1` does not live long enough
12   --> $DIR/issue-24805-dropck-trait-has-items.rs:43:34
13    |
14 LL |     _d = D_HasMethodWithSelfArg(&d1);
15    |                                  ^^ borrowed value does not live long enough
16 LL | }
17    | - `d1` dropped here while still borrowed
18    |
19    = note: values in a scope are dropped in the opposite order they are created
20
21 error[E0597]: `d1` does not live long enough
22   --> $DIR/issue-24805-dropck-trait-has-items.rs:49:21
23    |
24 LL |     _d = D_HasType(&d1);
25    |                     ^^ borrowed value does not live long enough
26 LL | }
27    | - `d1` dropped here while still borrowed
28    |
29    = note: values in a scope are dropped in the opposite order they are created
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0597`.