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

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

22 lines
814 B
Plaintext
Raw Normal View History

2021-04-06 18:16:11 -07:00
error[E0119]: conflicting implementations of trait `Sweet`
2023-09-20 21:41:19 +02:00
--> $DIR/coherence-overlap-downstream.rs:11:1
|
2018-02-23 03:42:32 +03:00
LL | impl<T:Sugar> Sweet for T { }
| ------------------------- first implementation here
2018-02-23 03:42:32 +03:00
LL | impl<T:Fruit> Sweet for T { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
2021-04-06 18:16:11 -07:00
error[E0119]: conflicting implementations of trait `Foo<_>` for type `i32`
2023-09-20 21:41:19 +02:00
--> $DIR/coherence-overlap-downstream.rs:17:1
|
2018-02-23 03:42:32 +03:00
LL | impl<X, T> Foo<X> for T where T: Bar<X> {}
2022-02-13 16:27:59 +01:00
| ----------------------- first implementation here
2018-02-23 03:42:32 +03: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 15:59:40 +01:00
For more information about this error, try `rustc --explain E0119`.