struct T(i32); impl PartialEq for T { fn eq(&self, other: &i32) -> bool { &self.0 == other } } fn main() { 4i32 == T(4); //~ mismatched types [E0308] }