]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/reservation-impls/reservation-impl-coherence-conflict.stderr
improve and add tests
[rust.git] / src / test / ui / traits / reservation-impls / reservation-impl-coherence-conflict.stderr
1 error[E0119]: conflicting implementations of trait `OtherTrait` for type `()`:
2   --> $DIR/reservation-impl-coherence-conflict.rs:13:1
3    |
4 LL | impl OtherTrait for () {}
5    | ---------------------- first implementation here
6 LL | impl<T: MyTrait> OtherTrait for T {}
7    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0119`.