1 // revisions: mirunsafeck thirunsafeck
2 // [thirunsafeck]compile-flags: -Z thir-unsafeck
9 impl PartialEq for U1 { fn eq(&self, rhs: &Self) -> bool { true } }
11 #[derive(PartialEq, Copy, Clone)]
12 struct PartialEqNotEq;
16 a: PartialEqNotEq, //~ ERROR the trait bound `PartialEqNotEq: Eq` is not satisfied
19 impl PartialEq for U2 { fn eq(&self, rhs: &Self) -> bool { true } }