pub fn foo(s: S, t: S) { let _ = s == t; //~ ERROR binary operation `==` cannot be applied to type `S` } struct S(T); fn main() {}