mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
23 lines
665 B
Plaintext
23 lines
665 B
Plaintext
error: closure called just once immediately after it was declared
|
|
--> $DIR/redundant_closure_call_late.rs:16:5
|
|
|
|
|
LL | i = redun_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::redundant-closure-call` implied by `-D warnings`
|
|
|
|
error: closure called just once immediately after it was declared
|
|
--> $DIR/redundant_closure_call_late.rs:20:5
|
|
|
|
|
LL | i = shadowed_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: closure called just once immediately after it was declared
|
|
--> $DIR/redundant_closure_call_late.rs:22:5
|
|
|
|
|
LL | i = shadowed_closure();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|