2017-12-10 13:47:55 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `Sweet`:
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:18:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
17 | impl<T:Sugar> Sweet for T { }
|
|
|
|
| ----------------------------- first implementation here
|
2017-12-10 14:29:24 -06:00
|
|
|
18 | impl<T:Fruit> Sweet for T { }
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
|
|
|
|
|
|
|
|
error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`:
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:24:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
23 | impl<X, T> Foo<X> for T where T: Bar<X> {}
|
2017-12-10 13:47:55 -06:00
|
|
|
| ------------------------------------------ first implementation here
|
2017-12-10 14:29:24 -06:00
|
|
|
24 | impl<X> Foo<X> for i32 {}
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
|
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `Bar<_>` for type `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|