LL | i = closure(3);
| ^^^^^^^^^^^^^^
-error: Try not to call a closure in the expression where it is declared.
- --> $DIR/redundant_closure_call.rs:4:13
- |
-LL | let a = (|| 42)();
- | ^^^^^^^^^ help: Try doing something like: : `42`
-
error: Try not to call a closure in the expression where it is declared.
--> $DIR/redundant_closure_call.rs:7:17
|
LL | k = (|a, b| a * b)(1, 5);
| ^^^^^^^^^^^^^^^^^^^^
-error: aborting due to 5 previous errors
+error: aborting due to 4 previous errors