rust/tests/ui/traits/negative-impls/negative-specializes-negative.rs
2024-02-16 20:02:50 +00:00

14 lines
277 B
Rust

#![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() {}