blob: 4e8c2cd171e6c6371a61cbeed416056469d0f690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ 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() {}
|