rust/tests/ui/coherence/coherence-overlap-downstream.next.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
830 B
Plaintext
Raw Normal View History

2021-04-06 20:16:11 -05:00
error[E0119]: conflicting implementations of trait `Sweet`
2023-09-20 14:41:19 -05:00
--> $DIR/coherence-overlap-downstream.rs:11:1
|
2018-02-22 18:42:32 -06:00
LL | impl<T:Sugar> Sweet for T { }
| ------------------------- first implementation here
2018-02-22 18:42:32 -06:00
LL | impl<T:Fruit> Sweet for T { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
2021-04-06 20:16:11 -05:00
error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`
2023-09-20 14:41:19 -05:00
--> $DIR/coherence-overlap-downstream.rs:17:1
|
2018-02-22 18:42:32 -06:00
LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
| --------------------------------------- first implementation here
2018-02-22 18:42:32 -06:00
LL | impl<X> Foo<X> for i32 {}
| ^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
|
= note: downstream crates may implement trait `Bar<_>` for type `i32`
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0119`.