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