2017-05-27 19:58:52 +02:00
|
|
|
error[E0597]: `c` does not live long enough
|
2018-05-25 12:36:58 +02:00
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:41:20
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | dt = Dt("dt", &c);
|
2017-12-13 17:27:23 -08:00
|
|
|
| ^ borrowed value does not live long enough
|
2016-10-17 18:02:23 +02:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2017-12-13 17:27:23 -08:00
|
|
|
| - `c` dropped here while still borrowed
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 19:58:52 +02:00
|
|
|
error[E0597]: `c` does not live long enough
|
2018-05-25 12:36:58 +02:00
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:43:20
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | dr = Dr("dr", &c);
|
2017-12-13 17:27:23 -08:00
|
|
|
| ^ borrowed value does not live long enough
|
2016-10-17 18:02:23 +02:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2017-12-13 17:27:23 -08:00
|
|
|
| - `c` dropped here while still borrowed
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2018-05-25 12:36:58 +02:00
|
|
|
error[E0597]: `c_shortest` does not live long enough
|
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:47:20
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
2018-05-25 12:36:58 +02:00
|
|
|
LL | dt = Dt("dt", &c_shortest);
|
|
|
|
| ^^^^^^^^^^ borrowed value does not live long enough
|
2016-10-17 18:02:23 +02:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2018-05-25 12:36:58 +02:00
|
|
|
| - `c_shortest` dropped here while still borrowed
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2018-05-25 12:36:58 +02:00
|
|
|
error[E0597]: `c_shortest` does not live long enough
|
2018-11-05 16:19:51 +01:00
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:50:20
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
2018-05-25 12:36:58 +02:00
|
|
|
LL | dr = Dr("dr", &c_shortest);
|
|
|
|
| ^^^^^^^^^^ borrowed value does not live long enough
|
2016-10-17 18:02:23 +02:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2018-05-25 12:36:58 +02:00
|
|
|
| - `c_shortest` dropped here while still borrowed
|
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
|
|
|
error[E0597]: `c_shortest` does not live long enough
|
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:57:29
|
|
|
|
|
|
|
|
|
LL | pt = Pt("pt", &c_long, &c_shortest);
|
|
|
|
| ^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - `c_shortest` dropped here while still borrowed
|
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
|
|
|
error[E0597]: `c_shortest` does not live long enough
|
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:59:29
|
|
|
|
|
|
|
|
|
LL | pr = Pr("pr", &c_long, &c_shortest);
|
|
|
|
| ^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| - `c_shortest` dropped here while still borrowed
|
2016-10-17 18:02:23 +02:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2018-05-25 12:36:58 +02:00
|
|
|
error: aborting due to 6 previous errors
|
2016-10-17 18:02:23 +02:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|