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

trait MyTrait {
    type Foo;
}

default impl !MyTrait for u32 {} //~ ERROR negative impls cannot be default impls

fn main() {}