2021-04-06 20:16:11 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `OtherTrait` for type `()`
|
2023-03-21 10:26:23 -05:00
|
|
|
--> $DIR/coherence-conflict.rs:12: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`.
|