]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | error[E0119]: conflicting implementations of trait `OtherTrait` for type `()` |
6a06907d | 2 | --> $DIR/coherence-conflict.rs:11:1 |
e74abb32 XL |
3 | | |
4 | LL | impl OtherTrait for () {} | |
5 | | ---------------------- first implementation here | |
6 | LL | impl<T: MyTrait> OtherTrait for T {} | |
7 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()` | |
8 | | | |
9 | = note: this impl is reserved | |
10 | ||
11 | error: aborting due to previous error | |
12 | ||
13 | For more information about this error, try `rustc --explain E0119`. |