2021-04-06 18:16:11 -07:00
|
|
|
error[E0119]: conflicting implementations of trait `OtherTrait` for type `()`
|
2023-03-21 16:26:23 +01:00
|
|
|
--> $DIR/coherence-conflict.rs:12:1
|
2019-07-13 22:52:57 +03:00
|
|
|
|
|
|
|
|
LL | impl OtherTrait for () {}
|
|
|
|
| ---------------------- first implementation here
|
|
|
|
LL | impl<T: MyTrait> OtherTrait for T {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|