]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/dropck-eyepatch.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / dropck / dropck-eyepatch.stderr
1 error[E0597]: `c` does not live long enough
2   --> $DIR/dropck-eyepatch.rs:81:20
3    |
4 LL |     dt = Dt("dt", &c);
5    |                    ^ borrowed value does not live long enough
6 ...
7 LL | }
8    | - `c` dropped here while still borrowed
9    |
10    = note: values in a scope are dropped in the opposite order they are created
11
12 error[E0597]: `c` does not live long enough
13   --> $DIR/dropck-eyepatch.rs:83:20
14    |
15 LL |     dr = Dr("dr", &c);
16    |                    ^ borrowed value does not live long enough
17 ...
18 LL | }
19    | - `c` dropped here while still borrowed
20    |
21    = note: values in a scope are dropped in the opposite order they are created
22
23 error[E0597]: `c_shortest` does not live long enough
24   --> $DIR/dropck-eyepatch.rs:87:20
25    |
26 LL |     dt = Dt("dt", &c_shortest);
27    |                    ^^^^^^^^^^ borrowed value does not live long enough
28 ...
29 LL | }
30    | - `c_shortest` dropped here while still borrowed
31    |
32    = note: values in a scope are dropped in the opposite order they are created
33
34 error[E0597]: `c_shortest` does not live long enough
35   --> $DIR/dropck-eyepatch.rs:89:20
36    |
37 LL |     dr = Dr("dr", &c_shortest);
38    |                    ^^^^^^^^^^ borrowed value does not live long enough
39 ...
40 LL | }
41    | - `c_shortest` dropped here while still borrowed
42    |
43    = note: values in a scope are dropped in the opposite order they are created
44
45 error[E0597]: `c_shortest` does not live long enough
46   --> $DIR/dropck-eyepatch.rs:98:29
47    |
48 LL |     pt = Pt("pt", &c_long, &c_shortest);
49    |                             ^^^^^^^^^^ borrowed value does not live long enough
50 ...
51 LL | }
52    | - `c_shortest` dropped here while still borrowed
53    |
54    = note: values in a scope are dropped in the opposite order they are created
55
56 error[E0597]: `c_shortest` does not live long enough
57   --> $DIR/dropck-eyepatch.rs:100:29
58    |
59 LL |     pr = Pr("pr", &c_long, &c_shortest);
60    |                             ^^^^^^^^^^ borrowed value does not live long enough
61 ...
62 LL | }
63    | - `c_shortest` dropped here while still borrowed
64    |
65    = note: values in a scope are dropped in the opposite order they are created
66
67 error: aborting due to 6 previous errors
68
69 For more information about this error, try `rustc --explain E0597`.