]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-overlap-downstream.old.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / coherence / coherence-overlap-downstream.old.stderr
1 error[E0119]: conflicting implementations of trait `Sweet`:
2   --> $DIR/coherence-overlap-downstream.rs:12: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:19: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`.