]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0592]: duplicate definitions with name `dummy` |
0731742a | 2 | --> $DIR/coherence-overlap-downstream-inherent.rs:11:26 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } } |
ff7c6d11 | 5 | | ^^^^^^^^^^^^^^^^^^^ duplicate definitions for `dummy` |
0731742a | 6 | ... |
0531ce1d | 7 | LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } } |
ff7c6d11 XL |
8 | | ------------------- other definition for `dummy` |
9 | ||
10 | error[E0592]: duplicate definitions with name `f` | |
0731742a | 11 | --> $DIR/coherence-overlap-downstream-inherent.rs:18:38 |
ff7c6d11 | 12 | | |
0531ce1d | 13 | LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} } |
ff7c6d11 | 14 | | ^^^^^^^^^^^^^^ duplicate definitions for `f` |
0731742a | 15 | ... |
0531ce1d | 16 | LL | impl<X> A<i32, X> { fn f(&self) {} } |
ff7c6d11 XL |
17 | | -------------- other definition for `f` |
18 | | | |
19 | = note: downstream crates may implement trait `Bar<_>` for type `i32` | |
20 | ||
21 | error: aborting due to 2 previous errors | |
22 | ||
dc9dc135 | 23 | For more information about this error, try `rustc --explain E0592`. |