2021-04-06 20:16:11 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `Sweet`
|
2023-09-20 14:41:19 -05:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:11:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<T:Sugar> Sweet for T { }
|
2017-12-18 01:46:55 -06:00
|
|
|
| ------------------------- first implementation here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<T:Fruit> Sweet for T { }
|
2017-12-18 01:46:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
|
2017-12-10 13:47:55 -06:00
|
|
|
|
2021-04-06 20:16:11 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`
|
2023-09-20 14:41:19 -05:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:17:1
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
|
2023-10-06 15:35:52 -05:00
|
|
|
| --------------------------------------- first implementation here
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0119`.
|