2017-12-10 13:47:55 -06:00
|
|
|
error[E0592]: duplicate definitions with name `dummy`
|
2019-10-26 10:28:02 -05:00
|
|
|
--> $DIR/coherence-overlap-downstream-inherent.rs:7:26
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } }
|
2020-08-12 16:02:14 -05:00
|
|
|
| ^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
|
2019-10-26 10:28:02 -05:00
|
|
|
LL |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } }
|
2020-08-12 16:02:14 -05:00
|
|
|
| --------------- other definition for `dummy`
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0592]: duplicate definitions with name `f`
|
2019-10-26 10:28:02 -05:00
|
|
|
--> $DIR/coherence-overlap-downstream-inherent.rs:13:38
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} }
|
2020-08-12 16:02:14 -05:00
|
|
|
| ^^^^^^^^^^^ duplicate definitions for `f`
|
2019-10-26 10:28:02 -05:00
|
|
|
LL |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | impl<X> A<i32, X> { fn f(&self) {} }
|
2020-08-12 16:02:14 -05:00
|
|
|
| ----------- other definition for `f`
|
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
|
|
|
|
|
2019-06-13 20:54:27 -05:00
|
|
|
For more information about this error, try `rustc --explain E0592`.
|