]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-overlap-downstream-inherent.old.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-overlap-downstream-inherent.old.stderr
CommitLineData
ff7c6d11 1error[E0592]: duplicate definitions with name `dummy`
0731742a 2 --> $DIR/coherence-overlap-downstream-inherent.rs:11:26
ff7c6d11 3 |
0531ce1d 4LL | impl<T:Sugar> Sweet<T> { fn dummy(&self) { } }
ff7c6d11 5 | ^^^^^^^^^^^^^^^^^^^ duplicate definitions for `dummy`
0731742a 6...
0531ce1d 7LL | impl<T:Fruit> Sweet<T> { fn dummy(&self) { } }
ff7c6d11
XL
8 | ------------------- other definition for `dummy`
9
10error[E0592]: duplicate definitions with name `f`
0731742a 11 --> $DIR/coherence-overlap-downstream-inherent.rs:18:38
ff7c6d11 12 |
0531ce1d 13LL | impl<X, T> A<T, X> where T: Bar<X> { fn f(&self) {} }
ff7c6d11 14 | ^^^^^^^^^^^^^^ duplicate definitions for `f`
0731742a 15...
0531ce1d 16LL | 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
21error: aborting due to 2 previous errors
22
dc9dc135 23For more information about this error, try `rustc --explain E0592`.