rust/tests/ui/argument-suggestions/issue-98894.rs
2023-01-11 09:32:08 +00:00

5 lines
129 B
Rust

fn main() {
(|_, ()| ())(if true {} else {return;});
//~^ ERROR function takes 2 arguments but 1 argument was supplied
}