1 error[E0119]: conflicting implementations of trait `Foo`
2 --> $DIR/coherence-overlap-messages.rs:4:1
4 LL | impl<T> Foo for T {}
5 | ----------------- first implementation here
6 LL | impl<U> Foo for U {}
7 | ^^^^^^^^^^^^^^^^^ conflicting implementation
9 error[E0119]: conflicting implementations of trait `Bar` for type `(u8, u8)`
10 --> $DIR/coherence-overlap-messages.rs:11:1
12 LL | impl<T> Bar for (T, u8) {}
13 | ----------------------- first implementation here
14 LL | impl<T> Bar for (u8, T) {}
15 | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(u8, u8)`
17 error[E0119]: conflicting implementations of trait `Baz<u8>` for type `u8`
18 --> $DIR/coherence-overlap-messages.rs:17:1
20 LL | impl<T> Baz<u8> for T {}
21 | --------------------- first implementation here
22 LL | impl<T> Baz<T> for u8 {}
23 | ^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u8`
25 error[E0119]: conflicting implementations of trait `Quux<_, _>`
26 --> $DIR/coherence-overlap-messages.rs:23:1
28 LL | impl<T, U, V> Quux<U, V> for T {}
29 | ------------------------------ first implementation here
30 LL | impl<T, U> Quux<U, U> for T {}
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
33 error[E0119]: conflicting implementations of trait `Quux<_, _>`
34 --> $DIR/coherence-overlap-messages.rs:25:1
36 LL | impl<T, U, V> Quux<U, V> for T {}
37 | ------------------------------ first implementation here
39 LL | impl<T, V> Quux<T, V> for T {}
40 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
42 error: aborting due to 5 previous errors
44 For more information about this error, try `rustc --explain E0119`.