]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-overlap-downstream.old.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-overlap-downstream.old.stderr
CommitLineData
ff7c6d11 1error[E0119]: conflicting implementations of trait `Sweet`:
0731742a 2 --> $DIR/coherence-overlap-downstream.rs:12:1
ff7c6d11 3 |
0531ce1d 4LL | impl<T:Sugar> Sweet for T { }
ff7c6d11 5 | ------------------------- first implementation here
0531ce1d 6LL | impl<T:Fruit> Sweet for T { }
ff7c6d11
XL
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
8
9error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`:
0731742a 10 --> $DIR/coherence-overlap-downstream.rs:19:1
ff7c6d11 11 |
0531ce1d 12LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
ff7c6d11 13 | --------------------------------------- first implementation here
0531ce1d 14LL | impl<X> Foo<X> for i32 {}
ff7c6d11
XL
15 | ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
16 |
17 = note: downstream crates may implement trait `Bar<_>` for type `i32`
18
19error: aborting due to 2 previous errors
20
0531ce1d 21For more information about this error, try `rustc --explain E0119`.