1 error[E0277]: can't compare `S` with `S`
2 --> $DIR/E0277-3.rs:6:9
5 | --- ^ no implementation for `S == S`
7 | required by a bound introduced by this call
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
13 LL | fn foo<T: PartialEq>(_: T) {}
14 | ^^^^^^^^^ required by this bound in `foo`
15 help: consider annotating `S` with `#[derive(PartialEq)]`
17 LL | #[derive(PartialEq)]
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0277`.