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