1 2 3 4 5 6 7 8
fn foo<T: PartialEq>(_: T) {} struct S; fn main() { foo(S); //~^ ERROR can't compare `S` with `S` }