blob: 90ea217698d6572f8040208d9f238c2e2d90d0d0 [file] [log] [blame]
#![feature(const_fn_fn_ptr_basics)]
const fn foo() { (||{})() }
//~^ ERROR calls in constant functions
const fn bad(input: fn()) {
input()
//~^ ERROR function pointer
}
fn main() {
}