#![feature(specialization)] #![feature(negative_impls)] trait MyTrait {} impl !MyTrait for T {} impl MyTrait for u32 {} //~ ERROR E0751 fn main() {}