2017-12-10 22:47:55 +03:00
|
|
|
error[E0592]: duplicate definitions with name `dummy`
|
2018-12-29 02:13:06 +01:00
|
|
|
--> $DIR/coherence-overlap-downstream-inherent.rs:11:26
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } }
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
|
2018-12-29 02:13:06 +01:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } }
|
2017-12-10 22:47:55 +03:00
|
|
|
| ------------------- other definition for `dummy`
|
|
|
|
|
|
|
|
error[E0592]: duplicate definitions with name `f`
|
2018-12-29 02:13:06 +01:00
|
|
|
--> $DIR/coherence-overlap-downstream-inherent.rs:18:38
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} }
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^ duplicate definitions for `f`
|
2018-12-29 02:13:06 +01:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<X> A<i32, X> { fn f(&self) {} }
|
2017-12-10 22:47:55 +03:00
|
|
|
| -------------- other definition for `f`
|
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `Bar<_>` for type `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|