]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-coherence-failure.stderr
Rollup merge of #76468 - SNCPlay42:lifetime-names, r=Mark-Simulacrum
[rust.git] / src / test / ui / associated-types / associated-types-coherence-failure.stderr
1 error[E0119]: conflicting implementations of trait `IntoCow<'_, _>` for type `Cow<'_, _>`:
2   --> $DIR/associated-types-coherence-failure.rs:21:1
3    |
4 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for <B as ToOwned>::Owned where B: ToOwned {
5    | ----------------------------------------------------------------------------- first implementation here
6 ...
7 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for Cow<'a, B> where B: ToOwned {
8    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Cow<'_, _>`
9
10 error[E0119]: conflicting implementations of trait `IntoCow<'_, _>` for type `&_`:
11   --> $DIR/associated-types-coherence-failure.rs:28:1
12    |
13 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for <B as ToOwned>::Owned where B: ToOwned {
14    | ----------------------------------------------------------------------------- first implementation here
15 ...
16 LL | impl<'a, B: ?Sized> IntoCow<'a, B> for &'a B where B: ToOwned {
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0119`.