//@ compile-flags: -Znext-solver=coherence #![feature(rustc_attrs)] #![rustc_no_implicit_bounds] #![recursion_limit = "10"] trait Trait {} struct W(*const T); trait TwoW {} impl TwoW for W> {} impl Trait for W {} impl Trait for T {} //~^ ERROR conflicting implementations of trait `Trait` for type `W fn main() {}