1 error[E0119]: conflicting implementations of trait `IntoCow<'_, _>` for type `Cow<'_, _>`
2 --> $DIR/associated-types-coherence-failure.rs:21:1
4 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for <B as ToOwned>::Owned where B: ToOwned {
5 | ----------------------------------------------------------------------------- first implementation here
7 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for Cow<'a, B> where B: ToOwned {
8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Cow<'_, _>`
10 error[E0119]: conflicting implementations of trait `IntoCow<'_, _>` for type `&_`
11 --> $DIR/associated-types-coherence-failure.rs:28:1
13 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for <B as ToOwned>::Owned where B: ToOwned {
14 | ----------------------------------------------------------------------------- first implementation here
16 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for &'a B where B: ToOwned {
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0119`.