rust/src/test/ui/coherence/coherence-cross-crate-conflict.old.stderr

22 lines
865 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`:
2018-12-28 19:13:06 -06:00
--> $DIR/coherence-cross-crate-conflict.rs:12:1
2018-08-08 07:28:26 -05:00
|
LL | impl<A> Foo for A {
| ^^^^^^^^^^^^^^^^^
|
= note: conflicting implementation in crate `trait_impl_conflict`:
- impl trait_impl_conflict::Foo for isize;
error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g., `MyStruct<A>`)
--> $DIR/coherence-cross-crate-conflict.rs:12:6
2018-08-08 07:28:26 -05:00
|
LL | impl<A> Foo for A {
| ^ type parameter `A` must be used as the type parameter for some local type
2018-08-08 07:28:26 -05:00
|
= note: only traits defined in the current crate can be implemented for a type parameter
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0119, E0210.
2018-08-08 07:28:26 -05:00
For more information about an error, try `rustc --explain E0119`.