2022-11-10 04:21:11 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `Foo<_>` for type `Option<_>`
|
2019-10-26 17:28:02 +02:00
|
|
|
--> $DIR/coherence-projection-conflict-ty-param.rs:10:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | impl <P, T: Foo<P>> Foo<P> for Option<T> {}
|
|
|
|
| ---------------------------------------- first implementation here
|
2022-06-08 21:07:59 +03:00
|
|
|
LL |
|
2018-12-29 02:13:06 +01:00
|
|
|
LL | impl<T, U> Foo<T> for Option<U> { }
|
2022-11-10 04:21:11 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Option<_>`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|