blob: 22c257d0b08af5724f4175352646e86aba9ae926 [file] [log] [blame]
const fn foo() { (||{})() }
//~^ ERROR cannot call non-const closure
const fn bad(input: fn()) {
input()
//~^ ERROR function pointer calls are not allowed
}
fn main() {
}