rust/src/test/ui/coherence/coherence-fundamental-trait-objects.old.stderr

15 lines
623 B
Plaintext
Raw Normal View History

error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
2019-01-04 10:19:22 +01:00
--> $DIR/coherence-fundamental-trait-objects.rs:15:1
|
LL | impl Misc for dyn Fundamental<Local> {}
| ^^^^^^^^^^^^^^----------------------
| | |
| | `(dyn coherence_fundamental_trait_lib::Fundamental<Local> + 'static)` is not defined in the current crate
| impl doesn't use only types from inside the current crate
|
= note: define and implement a trait or new type instead
error: aborting due to previous error
For more information about this error, try `rustc --explain E0117`.