]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-56164.rs
Auto merge of #106090 - WaffleLapkin:dereffffffffff, r=Nilstrieb
[rust.git] / tests / ui / consts / issue-56164.rs
1 const fn foo() { (||{})() }
2 //~^ ERROR cannot call non-const closure
3
4 const fn bad(input: fn()) {
5     input()
6     //~^ ERROR function pointer calls are not allowed
7 }
8
9 fn main() {
10 }