]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-87429-associated-type-default.stderr
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / 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:13: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:13:22
10    |
11 LL |     type Member<'a>: for<'b> PartialEq<Self::Member<'b>> = Foo;
12    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Family2::Member`
13 help: consider annotating `Foo` with `#[derive(PartialEq)]`
14    |
15 LL | #[derive(PartialEq)]
16    |
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0277`.