blob: a642e1101c7b2a11bc92780a848750b43f5e615e [file] [log] [blame]
#![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() {}