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

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

14 lines
274 B
Rust
Raw Normal View History

2020-05-17 10:22:48 +02:00
#![feature(specialization)] //~ WARN the feature `specialization` is incomplete
#![feature(negative_impls)]
// Test a negative impl that "specializes" another negative impl.
//
// run-pass
trait MyTrait {}
impl<T> !MyTrait for T {}
impl !MyTrait for u32 {}
fn main() {}