1 // Regression test for #93927: suggested trait bound for T should be Eq, not PartialEq
4 impl<T> PartialEq for MyType<T>
8 fn eq(&self, other: &Self) -> bool {
13 fn cond<T: PartialEq>(val: MyType<T>) -> bool {
15 //~^ ERROR binary operation `==` cannot be applied to type `MyType<T>`