]> git.proxmox.com Git - rustc.git/blob - src/test/ui/tuple/wrong_argument_ice-4.stderr
New upstream version 1.63.0+dfsg1
[rustc.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 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`.