rust-clippy/tests/ui/redundant_closure_call.stderr
Luis de Bethencourt 7d2e0cb435 clean tests/ui/redundant_closure_call.rs
Cleaning the empty lines for clarity.
2017-05-11 16:22:32 +01:00

38 lines
1.1 KiB
Text

error: Closure called just once immediately after it was declared
--> $DIR/redundant_closure_call.rs:15:2
|
15 | \ti = closure();
| \t^^^^^^^^^^^^^
|
note: lint level defined here
--> $DIR/redundant_closure_call.rs:4:9
|
4 | #![deny(redundant_closure_call)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: Closure called just once immediately after it was declared
--> $DIR/redundant_closure_call.rs:18:2
|
18 | \ti = closure(3);
| \t^^^^^^^^^^^^^^
error: Try not to call a closure in the expression where it is declared.
--> $DIR/redundant_closure_call.rs:7:10
|
7 | \tlet a = (|| 42)();
| \t ^^^^^^^^^ help: Try doing something like: `42`
error: Try not to call a closure in the expression where it is declared.
--> $DIR/redundant_closure_call.rs:10:10
|
10 | \tlet k = (|m| m+1)(i);
| \t ^^^^^^^^^^^^
error: Try not to call a closure in the expression where it is declared.
--> $DIR/redundant_closure_call.rs:12:6
|
12 | \tk = (|a,b| a*b)(1,5);
| \t ^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors