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