]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `c` does not live long enough |
c30ab7b3 SL |
2 | --> $DIR/dropck-eyepatch-extern-crate.rs:55:1 |
3 | | | |
4 | 39 | dt = Dt("dt", &c); //~ ERROR `c` does not live long enough | |
5 | | - borrow occurs here | |
6 | ... | |
7 | 55 | } | |
8 | | ^ `c` dropped here while still borrowed | |
9 | | | |
10 | = note: values in a scope are dropped in the opposite order they are created | |
11 | ||
7cac9316 | 12 | error[E0597]: `c` does not live long enough |
c30ab7b3 SL |
13 | --> $DIR/dropck-eyepatch-extern-crate.rs:55:1 |
14 | | | |
15 | 40 | dr = Dr("dr", &c); //~ ERROR `c` does not live long enough | |
16 | | - borrow occurs here | |
17 | ... | |
18 | 55 | } | |
19 | | ^ `c` dropped here while still borrowed | |
20 | | | |
21 | = note: values in a scope are dropped in the opposite order they are created | |
22 | ||
7cac9316 | 23 | error[E0597]: `c` does not live long enough |
c30ab7b3 SL |
24 | --> $DIR/dropck-eyepatch-extern-crate.rs:55:1 |
25 | | | |
26 | 47 | pt = Pt("pt", &c_long, &c); //~ ERROR `c` does not live long enough | |
27 | | - borrow occurs here | |
28 | ... | |
29 | 55 | } | |
30 | | ^ `c` dropped here while still borrowed | |
31 | | | |
32 | = note: values in a scope are dropped in the opposite order they are created | |
33 | ||
7cac9316 | 34 | error[E0597]: `c` does not live long enough |
c30ab7b3 SL |
35 | --> $DIR/dropck-eyepatch-extern-crate.rs:55:1 |
36 | | | |
37 | 48 | pr = Pr("pr", &c_long, &c); //~ ERROR `c` does not live long enough | |
38 | | - borrow occurs here | |
39 | ... | |
40 | 55 | } | |
41 | | ^ `c` dropped here while still borrowed | |
42 | | | |
43 | = note: values in a scope are dropped in the opposite order they are created | |
44 | ||
7cac9316 | 45 | error: aborting due to previous error(s) |
c30ab7b3 | 46 |