2020-07-26 14:07:07 -05:00
|
|
|
error: closure called just once immediately after it was declared
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:16:5
|
2020-07-26 14:07:07 -05:00
|
|
|
|
|
|
|
|
LL | i = redun_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: closure called just once immediately after it was declared
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:20:5
|
2020-07-26 14:07:07 -05:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: closure called just once immediately after it was declared
|
2021-12-06 05:33:31 -06:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:22:5
|
2020-07-26 14:07:07 -05:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|