mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
670 B
Plaintext
17 lines
670 B
Plaintext
error[E0593]: closure is expected to take a single 2-tuple as argument, but it takes 2 distinct arguments
|
|
--> $DIR/closure-arg-count-expected-type-issue-47244.rs:16:23
|
|
|
|
|
LL | let _n = m.iter().map(|_, b| {
|
|
| ^^^ ------ takes 2 distinct arguments
|
|
| |
|
|
| expected closure that takes a single 2-tuple as argument
|
|
|
|
|
help: change the closure to accept a tuple instead of individual arguments
|
|
|
|
|
LL | let _n = m.iter().map(|(_, b)| {
|
|
| ~~~~~~~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0593`.
|