|
LL | (|| {})(|| {
| _____^^^^^^^_-
- | | |
- | | expected 0 arguments
LL | |
LL | | let b = 1;
LL | | });
- | |_____- supplied 1 argument
+ | |_____- argument unexpected
+ |
+note: closure defined here
+ --> $DIR/wrong_argument_ice-4.rs:2:6
+ |
+LL | (|| {})(|| {
+ | ^^
+help: remove the extra argument
+ |
+LL | (|| {})();
+ | ~~~~~~~~~
error: aborting due to previous error