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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
138 B
Rust
Raw Normal View History

fn main() {
let f = |_: (), f: fn()| f;
let _f = f(main);
//~^ ERROR function takes 2 arguments but 1 argument was supplied
}