// Regression test for #93927: suggested trait bound for T should be Eq, not PartialEq struct MyType(T); impl PartialEq for MyType where T: Eq, { fn eq(&self, other: &Self) -> bool { true } } fn cond(val: MyType) -> bool { val == val //~^ ERROR binary operation `==` cannot be applied to type `MyType` } fn main() { cond(MyType(0)); }