summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/issue-99482.rs
blob: 7bbb39f8d62e2824d43b48cc22f89697e0acd625 (plain)
1
2
3
4
5
fn main() {
    let f = |_: (), f: fn()| f;
    let _f = f(main);
    //~^ ERROR function takes 2 arguments but 1 argument was supplied
}