about summary refs log tree commit diff
path: root/tests/ui/traits/negative-impls/negative-specializes-negative.rs
blob: bb2856ae7e7ca839bbb5474b45c5f95dec91708e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
#![feature(negative_impls)]

// Test a negative impl that "specializes" another negative impl.
//
//@ check-pass

trait MyTrait {}

impl<T> !MyTrait for T {}
impl !MyTrait for u32 {}

fn main() {}