1 error: Closure called just once immediately after it was declared
2 --> $DIR/redundant_closure_call.rs:18:2
7 note: lint level defined here
8 --> $DIR/redundant_closure_call.rs:4:9
10 4 | #![deny(redundant_closure_call)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
13 error: Closure called just once immediately after it was declared
14 --> $DIR/redundant_closure_call.rs:21:2
16 21 | \ti = closure(3);
19 error: Try not to call a closure in the expression where it is declared.
20 --> $DIR/redundant_closure_call.rs:7:10
22 7 | \tlet a = (|| 42)();
25 help: Try doing something like:
28 error: Try not to call a closure in the expression where it is declared.
29 --> $DIR/redundant_closure_call.rs:13:10
31 13 | \tlet k = (|m| m+1)(i);
34 error: Try not to call a closure in the expression where it is declared.
35 --> $DIR/redundant_closure_call.rs:15:6
37 15 | \tk = (|a,b| a*b)(1,5);
40 error: aborting due to 5 previous errors