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