rust/tests/ui/coherence/coherence-overlap-double-negative.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
159 B
Rust
Raw Normal View History

2022-03-16 17:59:03 +00:00
// check-pass
#![feature(negative_impls)]
#![feature(with_negative_coherence)]
trait A {}
trait B: A {}
impl !A for u32 {}
impl !B for u32 {}
fn main() {}