rust/tests/ui/coherence/coherence-overlap-double-negative.rs
2024-02-16 20:02:50 +00:00

13 lines
160 B
Rust

//@ check-pass
#![feature(negative_impls)]
#![feature(with_negative_coherence)]
trait A {}
trait B: A {}
impl !A for u32 {}
impl !B for u32 {}
fn main() {}