#![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 the constant `N` is not of type `usize` impl Copy for S {} fn main() {}