]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0119]: conflicting implementations of trait `Sweet`: |
0731742a | 2 | --> $DIR/coherence-overlap-downstream.rs:12:1 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | impl<T:Sugar> Sweet for T { } |
ff7c6d11 | 5 | | ------------------------- first implementation here |
0531ce1d | 6 | LL | impl<T:Fruit> Sweet for T { } |
ff7c6d11 XL |
7 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation |
8 | ||
9 | error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`: | |
0731742a | 10 | --> $DIR/coherence-overlap-downstream.rs:19:1 |
ff7c6d11 | 11 | | |
0531ce1d | 12 | LL | impl<X, T> Foo<X> for T where T: Bar<X> {} |
ff7c6d11 | 13 | | --------------------------------------- first implementation here |
0531ce1d | 14 | LL | impl<X> Foo<X> for i32 {} |
ff7c6d11 XL |
15 | | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32` |
16 | | | |
17 | = note: downstream crates may implement trait `Bar<_>` for type `i32` | |
18 | ||
19 | error: aborting due to 2 previous errors | |
20 | ||
0531ce1d | 21 | For more information about this error, try `rustc --explain E0119`. |