about summary refs log tree commit diff
path: root/tests/ui/coherence/coherence-overlap-double-negative.rs
blob: 917760b0174a8b20ee38267b6a1d7bd8011c39c8 (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() {}