]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/issue-56164.rs
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / 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
7 }
8
9 fn main() {
10 }