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 { }
|
2017-12-18 01:46:55 -06:00
|
|
|
| ------------------------- first implementation here
|
2017-12-10 14:29:24 -06:00
|
|
|
18 | impl<T:Fruit> Sweet for T { }
|
2017-12-18 01:46:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
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-18 01:46:55 -06:00
|
|
|
| --------------------------------------- first implementation here
|
2017-12-10 14:29:24 -06:00
|
|
|
24 | impl<X> Foo<X> for i32 {}
|
2017-12-18 01:46:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `Bar<_>` for type `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0119"
|