#![feature(min_specialization)] // An impl that has an erroneous const substitution should not specialize one // that is well-formed. #[derive(Clone)] struct S; impl Copy for S {} //~^ ERROR: mismatched types impl Copy for S {} //~^ ERROR: conflicting implementations of trait `Copy` for type `S<_>` fn main() {}