2021-04-06 18:16:11 -07:00
|
|
|
error[E0119]: conflicting implementations of trait `Sweet`
|
2023-09-20 21:41:19 +02:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:11:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<T:Sugar> Sweet for T { }
|
2017-12-17 23:46:55 -08:00
|
|
|
| ------------------------- first implementation here
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<T:Fruit> Sweet for T { }
|
2017-12-17 23:46:55 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
|
2017-12-10 22:47:55 +03:00
|
|
|
|
2021-04-06 18:16:11 -07:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`
|
2023-09-20 21:41:19 +02:00
|
|
|
--> $DIR/coherence-overlap-downstream.rs:17:1
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
|
2022-02-13 16:27:59 +01:00
|
|
|
| ----------------------- first implementation here
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<X> Foo<X> for i32 {}
|
2017-12-17 23:46:55 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `Bar<_>` for type `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0119`.
|