//@ compile-flags: -Znext-solver #![feature(const_trait_impl)] #[const_trait] trait Foo { fn foo(); } const fn foo() { const { T::foo() } //~^ ERROR the trait bound `T: const Foo` is not satisfied } fn main() {}