1 error: Closure called just once immediately after it was declared
2 --> $DIR/redundant_closure_call.rs:12:5
7 = note: `-D clippy::redundant-closure-call` implied by `-D warnings`
9 error: Closure called just once immediately after it was declared
10 --> $DIR/redundant_closure_call.rs:15:5
15 error: Try not to call a closure in the expression where it is declared.
16 --> $DIR/redundant_closure_call.rs:7:17
18 LL | let mut k = (|m| m + 1)(i);
21 error: Try not to call a closure in the expression where it is declared.
22 --> $DIR/redundant_closure_call.rs:9:9
24 LL | k = (|a, b| a * b)(1, 5);
25 | ^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 4 previous errors