2 // revisions: mirunsafeck thirunsafeck
3 // [thirunsafeck]compile-flags: -Z thir-unsafeck
6 #![allow(unused_variables)]
8 // Some traits can be derived for unions.
20 impl PartialEq for U { fn eq(&self, rhs: &Self) -> bool { true } }
31 impl<T: Copy> PartialEq for W<T> { fn eq(&self, rhs: &Self) -> bool { true } }