1 error[E0369]: binary operation `==` cannot be applied to type `S<T>`
2 --> $DIR/invalid-bin-op.rs:2:15
9 note: an implementation of `PartialEq<_>` might be missing for `S<T>`
10 --> $DIR/invalid-bin-op.rs:5:1
13 | ^^^^^^^^^^^ must implement `PartialEq<_>`
14 help: consider annotating `S<T>` with `#[derive(PartialEq)]`
16 LL | #[derive(PartialEq)]
18 help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
20 LL | pub fn foo<T>(s: S<T>, t: S<T>) where S<T>: PartialEq {
21 | +++++++++++++++++++++
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0369`.