summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/negative-impls/positive-specializes-negative.rs
blob: a06b357654068b2604fca2540ff841b3a7e38f74 (plain)
1
2
3
4
5
6
7
8
9
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
#![feature(negative_impls)]

trait MyTrait {}

impl<T> !MyTrait for T {}
impl MyTrait for u32 {} //~ ERROR E0751

fn main() {}