mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
23 lines
761 B
Text
23 lines
761 B
Text
error: closure called just once immediately after it was declared
|
|
--> tests/ui/redundant_closure_call_late.rs:16:5
|
|
|
|
|
LL | i = redun_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_closure_call)]`
|
|
|
|
error: closure called just once immediately after it was declared
|
|
--> tests/ui/redundant_closure_call_late.rs:22:5
|
|
|
|
|
LL | i = shadowed_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: closure called just once immediately after it was declared
|
|
--> tests/ui/redundant_closure_call_late.rs:25:5
|
|
|
|
|
LL | i = shadowed_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|