2020-07-19 17:36:31 -05:00
|
|
|
error: closure called just once immediately after it was declared
|
2021-11-18 07:54:49 -06:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:16:5
|
2020-07-18 17:33:54 -05:00
|
|
|
|
|
|
|
|
LL | i = redun_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
|
|
|
|
2020-07-19 17:36:31 -05:00
|
|
|
error: closure called just once immediately after it was declared
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:22:5
|
2020-07-19 04:47:32 -05:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-07-19 17:36:31 -05:00
|
|
|
error: closure called just once immediately after it was declared
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/redundant_closure_call_late.rs:25:5
|
2020-07-19 04:47:32 -05:00
|
|
|
|
|
|
|
|
LL | i = shadowed_closure();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2020-07-18 17:33:54 -05:00
|
|
|
|