blob: 9d1a8b59463e7ecb07d866c9cf0dcd6e8f82e53f [file] [log] [blame]
#![feature(const_fn)]
const fn foo() { (||{})() }
//~^ ERROR calls in constant functions are limited to constant functions, tuple structs and tuple
// variants
const fn bad(input: fn()) {
input()
//~^ ERROR function pointers are not allowed in const fn
}
fn main() {
}