fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
538 B19 linesraw
1error[E0057]: this function takes 2 arguments but 1 argument was supplied
2  --> $DIR/issue-99482.rs:3:14
3   |
4LL |     let _f = f(main);
5   |              ^ ---- an argument of type `()` is missing
6   |
7note: closure defined here
8  --> $DIR/issue-99482.rs:2:13
9   |
10LL |     let f = |_: (), f: fn()| f;
11   |             ^^^^^^^^^^^^^^^^
12help: provide the argument
13   |
14LL |     let _f = f((), main);
15   |               ~~~~~~~~~~
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0057`.