]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | error[E0277]: can't compare `S` with `S` |
2 | --> $DIR/E0277-3.rs:6:9 | |
3 | | | |
4 | LL | foo(S); | |
5 | | --- ^ no implementation for `S == S` | |
6 | | | | |
7 | | required by a bound introduced by this call | |
8 | | | |
9 | = help: the trait `PartialEq` is not implemented for `S` | |
10 | note: required by a bound in `foo` | |
11 | --> $DIR/E0277-3.rs:1:11 | |
12 | | | |
13 | LL | fn foo<T: PartialEq>(_: T) {} | |
14 | | ^^^^^^^^^ required by this bound in `foo` | |
15 | help: consider annotating `S` with `#[derive(PartialEq)]` | |
16 | | | |
353b0b11 FG |
17 | LL + #[derive(PartialEq)] |
18 | LL | struct S; | |
04454e1e FG |
19 | | |
20 | ||
21 | error: aborting due to previous error | |
22 | ||
23 | For more information about this error, try `rustc --explain E0277`. |