]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-87429-associated-type-default.stderr
Rollup merge of #94019 - hermitcore:target, r=Mark-Simulacrum
[rust.git] / src / test / ui / generic-associated-types / issue-87429-associated-type-default.stderr
1 error[E0277]: can't compare `Foo` with `Foo`
2   --> $DIR/issue-87429-associated-type-default.rs:14:60
3    |
4 LL |     type Member<'a>: for<'b> PartialEq<Self::Member<'b>> = Foo;
5    |                                                            ^^^ no implementation for `Foo == Foo`
6    |
7    = help: the trait `PartialEq` is not implemented for `Foo`
8 note: required by a bound in `Family2::Member`
9   --> $DIR/issue-87429-associated-type-default.rs:14:22
10    |
11 LL |     type Member<'a>: for<'b> PartialEq<Self::Member<'b>> = Foo;
12    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Family2::Member`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.