]>
Commit | Line | Data |
---|---|---|
c30ab7b3 SL |
1 | error: `c` does not live long enough |
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 | ||
12 | error: `c` does not live long enough | |
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 | ||
23 | error: `c` does not live long enough | |
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 | ||
34 | error: `c` does not live long enough | |
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 | ||
45 | error: aborting due to 4 previous errors | |
46 |