2020-08-28 09:10:16 -05:00
|
|
|
error: try not to call a closure in the expression where it is declared
|
2020-07-26 14:07:07 -05:00
|
|
|
--> $DIR/redundant_closure_call_early.rs:9:17
|
|
|
|
|
|
|
|
|
LL | let mut k = (|m| m + 1)(i);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
|
|
|
|
2020-08-28 09:10:16 -05:00
|
|
|
error: try not to call a closure in the expression where it is declared
|
2020-07-26 14:07:07 -05:00
|
|
|
--> $DIR/redundant_closure_call_early.rs:12:9
|
|
|
|
|
|
|
|
|
LL | k = (|a, b| a * b)(1, 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|