2020-07-26 19:07:07 +00:00
|
|
|
error: closure called just once immediately after it was declared
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_closure_call_late.rs:16:5
|
2020-07-26 19:07:07 +00:00
|
|
|
|
|
|
|
|
LL | i = redun_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
|
|
error: closure called just once immediately after it was declared
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_closure_call_late.rs:22:5
|
2020-07-26 19:07:07 +00:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: closure called just once immediately after it was declared
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/redundant_closure_call_late.rs:25:5
|
2020-07-26 19:07:07 +00:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|