rust/src/test/ui/traits/reservation-impls/reservation-impl-coherence-conflict.stderr

14 lines
487 B
Plaintext
Raw Normal View History

2019-07-13 14:52:57 -05:00
error[E0119]: conflicting implementations of trait `OtherTrait` for type `()`:
--> $DIR/reservation-impl-coherence-conflict.rs:11:1
2019-07-13 14:52:57 -05:00
|
LL | impl OtherTrait for () {}
| ---------------------- first implementation here
LL | impl<T: MyTrait> OtherTrait for T {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
2019-07-27 14:18:34 -05:00
|
= note: this impl is reserved
2019-07-13 14:52:57 -05:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0119`.