fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
831 B21 linesraw
1error[E0119]: conflicting implementations of trait `Sweet`:
2  --> $DIR/coherence-overlap-downstream.rs:8:1
3   |
4LL | impl<T:Sugar> Sweet for T { }
5   | ------------------------- first implementation here
6LL | impl<T:Fruit> Sweet for T { }
7   | ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
8
9error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`:
10  --> $DIR/coherence-overlap-downstream.rs:14:1
11   |
12LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
13   | --------------------------------------- first implementation here
14LL | impl<X> Foo<X> for i32 {}
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
21For more information about this error, try `rustc --explain E0119`.