2024-02-16 11:56:15 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo` for type `()`
|
2024-09-21 02:05:19 -05:00
|
|
|
--> $DIR/incoherent-even-though-we-fulfill.rs:15:1
|
2024-02-16 11:56:15 -06:00
|
|
|
|
|
|
|
|
LL | impl<T> Foo for T where (): Mirror<Assoc = T> {}
|
|
|
|
| --------------------------------------------- first implementation here
|
|
|
|
LL |
|
|
|
|
LL | impl<T> Foo for T where T: Iterator {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
|
|
|
|
|
|
|
|
|
= note: upstream crates may add a new impl of trait `std::iter::Iterator` for type `()` in future versions
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|