#![feature(negative_impls)] #![feature(with_negative_coherence)] struct Wrap(T); trait Foo {} impl !Foo for Box {} trait Bar {} impl Bar for T where T: Foo {} impl Bar for Box {} //~^ ERROR conflicting implementations of trait `Bar` for type `Box<_>` fn main() {}