2020-08-28 14:10:16 +00:00
|
|
|
error: try not to call a closure in the expression where it is declared
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_closure_call_early.rs:9:17
|
2020-07-26 19:07:07 +00:00
|
|
|
|
|
|
|
|
LL | let mut k = (|m| m + 1)(i);
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_closure_call)]`
|
2020-07-26 19:07:07 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: try not to call a closure in the expression where it is declared
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_closure_call_early.rs:14:9
|
2020-07-26 19:07:07 +00:00
|
|
|
|
|
|
|
|
LL | k = (|a, b| a * b)(1, 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|