fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
936 B23 linesraw
1error[E0592]: duplicate definitions with name `dummy`
2  --> $DIR/coherence-overlap-downstream-inherent.rs:10:26
3   |
4LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } }
5   |                          ^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
6LL |
7LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } }
8   |                          --------------- other definition for `dummy`
9
10error[E0592]: duplicate definitions with name `f`
11  --> $DIR/coherence-overlap-downstream-inherent.rs:16:38
12   |
13LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} }
14   |                                      ^^^^^^^^^^^ duplicate definitions for `f`
15LL |
16LL | 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
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0592`.