]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/closure-arg-count-expected-type-issue-47244.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / ui / mismatched_types / closure-arg-count-expected-type-issue-47244.stderr
1 error[E0593]: closure is expected to take a single 2-tuple as argument, but it takes 2 distinct arguments
2   --> $DIR/closure-arg-count-expected-type-issue-47244.rs:16:23
3    |
4 LL |     let _n = m.iter().map(|_, b| {
5    |                       ^^^ ------ takes 2 distinct arguments
6    |                       |
7    |                       expected closure that takes a single 2-tuple as argument
8    |
9 help: change the closure to accept a tuple instead of individual arguments
10    |
11 LL |     let _n = m.iter().map(|(_, b)| {
12    |                           ~~~~~~~~
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0593`.