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)();
23 | \t ^^^^^^^^^ help: Try doing something like: `42`
25 error: Try not to call a closure in the expression where it is declared.
26 --> $DIR/redundant_closure_call.rs:13:10
28 13 | \tlet k = (|m| m+1)(i);
31 error: Try not to call a closure in the expression where it is declared.
32 --> $DIR/redundant_closure_call.rs:15:6
34 15 | \tk = (|a,b| a*b)(1,5);
37 error: aborting due to 5 previous errors