1 2 3 4 5 6 7 8 9 10 11 12
// check-pass #![feature(negative_impls)] #![feature(with_negative_coherence)] trait A {} trait B: A {} impl !A for u32 {} impl !B for u32 {} fn main() {}