4 #![deny(redundant_closure_call)]
8 //~^ ERROR Try not to call a closure in the expression where it is declared.
9 //~| HELP Try doing something like:
10 //~| SUGGESTION let a = 42;
13 let k = (|m| m+1)(i); //~ERROR Try not to call a closure in the expression where it is declared.
15 k = (|a,b| a*b)(1,5); //~ERROR Try not to call a closure in the expression where it is declared.
18 i = closure(); //~ERROR Closure called just once immediately after it was declared
20 let closure = |i| i+1;
21 i = closure(3); //~ERROR Closure called just once immediately after it was declared