1 2 3 4 5 6 7 8 9
//@ compile-flags: -Znext-solver #![feature(const_trait_impl)] pub trait A {} impl const A for () {} //~^ ERROR: const `impl` for trait `A` which is not `const` fn main() {}