1 2 3 4 5 6 7 8 9 10
const fn foo() { (||{})() } //~^ ERROR cannot call non-const closure const fn bad(input: fn()) { input() //~^ ERROR function pointer calls are not allowed } fn main() { }