rust/tests/ui/traits/negative-impls/negative-default-impls.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
239 B
Rust
Raw Normal View History

#![feature(negative_impls)]
#![feature(specialization)]
2020-05-17 08:22:48 +00:00
//~^ WARN the feature `specialization` is incomplete
trait MyTrait {
type Foo;
}
default impl !MyTrait for u32 {} //~ ERROR negative impls cannot be default impls
fn main() {}