]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-87429-specialization.stderr
Rollup merge of #102954 - GuillaumeGomez:cfg-hide-attr-checks, r=Manishearth
[rust.git] / src / test / ui / generic-associated-types / issue-87429-specialization.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/issue-87429-specialization.rs:3:12
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
8    = help: consider using `min_specialization` instead, which is more stable and complete
9    = note: `#[warn(incomplete_features)]` on by default
10
11 error[E0277]: can't compare `Foo` with `Foo`
12   --> $DIR/issue-87429-specialization.rs:20:31
13    |
14 LL |     default type Member<'a> = Foo;
15    |                               ^^^ no implementation for `Foo == Foo`
16    |
17    = help: the trait `PartialEq` is not implemented for `Foo`
18 note: required by a bound in `Family::Member`
19   --> $DIR/issue-87429-specialization.rs:7:22
20    |
21 LL |     type Member<'a>: for<'b> PartialEq<Self::Member<'b>>;
22    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Family::Member`
23 help: consider annotating `Foo` with `#[derive(PartialEq)]`
24    |
25 LL | #[derive(PartialEq)]
26    |
27
28 error: aborting due to previous error; 1 warning emitted
29
30 For more information about this error, try `rustc --explain E0277`.