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