]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice-4.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / tuple / wrong_argument_ice-4.stderr
1 error[E0057]: this function takes 0 arguments but 1 argument was supplied
2   --> $DIR/wrong_argument_ice-4.rs:2:5
3    |
4 LL |       (|| {})(|| {
5    |  _____^^^^^^^_-
6 LL | |
7 LL | |         let b = 1;
8 LL | |     });
9    | |_____- argument of type `[closure@$DIR/wrong_argument_ice-4.rs:2:13: 2:15]` unexpected
10    |
11 note: closure defined here
12   --> $DIR/wrong_argument_ice-4.rs:2:6
13    |
14 LL |     (|| {})(|| {
15    |      ^^
16 help: remove the extra argument
17    |
18 LL |     (|| {})();
19    |     ~~~~~~~~~
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0057`.