]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-overlap-downstream-inherent.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / coherence / coherence-overlap-downstream-inherent.stderr
1 error[E0592]: duplicate definitions with name `dummy`
2   --> $DIR/coherence-overlap-downstream-inherent.rs:7:26
3    |
4 LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } }
5    |                          ^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
6 LL |
7 LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } }
8    |                          --------------- other definition for `dummy`
9
10 error[E0592]: duplicate definitions with name `f`
11   --> $DIR/coherence-overlap-downstream-inherent.rs:13:38
12    |
13 LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} }
14    |                                      ^^^^^^^^^^^ duplicate definitions for `f`
15 LL |
16 LL | impl<X> A<i32, X> { fn f(&self) {} }
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
23 For more information about this error, try `rustc --explain E0592`.