rust/tests/ui/argument-suggestions/issue-98897.rs

5 lines
116 B
Rust
Raw Normal View History

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