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