blob: b132c395ac7b4f208bc6cdfc3a6b468d81f6e1d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(const_trait_impl)]
pub trait A {
fn assoc() -> bool;
}
pub const fn foo<T: A>() -> bool {
T::assoc()
//~^ ERROR the trait bound
//~| ERROR cannot call non-const fn
}
fn main() {}
|