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