summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-56164.rs
blob: 22c257d0b08af5724f4175352646e86aba9ae926 (plain)
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() {
}