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