blob: 4854f41bf04f4eee0505f61d80cfa1f7c6f92e7c [file] [log] [blame]
#![feature(const_trait_impl, effects)]
struct S;
#[const_trait]
trait T {
fn foo();
}
fn non_const() {}
impl const T for S {
fn foo() { non_const() }
//~^ ERROR cannot call non-const fn
}
fn main() {}