2018-05-25 05:36:58 -05:00
|
|
|
error[E0597]: `c_shortest` does not live long enough
|
|
|
|
--> $DIR/dropck-eyepatch-extern-crate.rs:47:19
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
2018-05-25 05:36:58 -05:00
|
|
|
LL | dt = Dt("dt", &c_shortest);
|
|
|
|
| ^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| -
|
|
|
|
| |
|
2018-07-22 10:02:31 -05:00
|
|
|
| `c_shortest` dropped here while still borrowed
|
2018-09-29 16:30:43 -05:00
|
|
|
| borrow might be used here, when `dt` is dropped and runs the `Drop` code for type `other::Dt`
|
2018-06-13 12:51:53 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are defined
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-05-25 05:36:58 -05:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|