summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-overlap-double-negative.rs
blob: 1ea0ddc7430e1c3bf5db8b2d6fc212bab2b8a92c (plain)
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() {}