]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_` |
0731742a | 2 | --> $DIR/issue-33941.rs:4:36 |
abe05a73 | 3 | | |
532ac7d7 | 4 | LL | for _ in HashMap::new().iter().cloned() {} |
abe05a73 XL |
5 | | ^^^^^^ expected tuple, found reference |
6 | | | |
60c5eb7d XL |
7 | = note: expected tuple `(&_, &_)` |
8 | found reference `&_` | |
abe05a73 | 9 | |
1b1a35ee | 10 | error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_` |
0731742a | 11 | --> $DIR/issue-33941.rs:4:14 |
abe05a73 | 12 | | |
532ac7d7 | 13 | LL | for _ in HashMap::new().iter().cloned() {} |
2c00a5a8 | 14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference |
abe05a73 | 15 | | |
60c5eb7d XL |
16 | = note: expected tuple `(&_, &_)` |
17 | found reference `&_` | |
1b1a35ee | 18 | = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` |
abe05a73 | 19 | |
1b1a35ee | 20 | error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_` |
f035d41b XL |
21 | --> $DIR/issue-33941.rs:4:14 |
22 | | | |
23 | LL | for _ in HashMap::new().iter().cloned() {} | |
24 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference | |
25 | | | |
26 | = note: expected tuple `(&_, &_)` | |
27 | found reference `&_` | |
1b1a35ee | 28 | = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` |
f035d41b XL |
29 | |
30 | error: aborting due to 3 previous errors | |
abe05a73 | 31 | |
0531ce1d | 32 | For more information about this error, try `rustc --explain E0271`. |