rust/tests/ui/traits/reservation-impl/coherence-conflict.next.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
471 B
Plaintext
Raw Normal View History

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 `()`
|
= note: this impl is reserved
2019-07-13 14:52:57 -05:00
error: aborting due to 1 previous error
2019-07-13 14:52:57 -05:00
For more information about this error, try `rustc --explain E0119`.