fork/rust

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

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

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