1 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
2 --> $DIR/issue-33941.rs:4:36
4 LL | for _ in HashMap::new().iter().cloned() {}
5 | ^^^^^^ expected tuple, found reference
7 = note: expected tuple `(&_, &_)`
10 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
11 --> $DIR/issue-33941.rs:4:14
13 LL | for _ in HashMap::new().iter().cloned() {}
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference, found tuple
16 = note: expected reference `&_`
17 found tuple `(&_, &_)`
18 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
19 = note: required because of the requirements on the impl of `IntoIterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
20 note: required by `into_iter`
21 --> $SRC_DIR/core/src/iter/traits/collect.rs:LL:COL
23 LL | fn into_iter(self) -> Self::IntoIter;
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
27 --> $DIR/issue-33941.rs:4:14
29 LL | for _ in HashMap::new().iter().cloned() {}
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference, found tuple
32 = note: expected reference `&_`
33 found tuple `(&_, &_)`
34 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
35 note: required by `std::iter::Iterator::next`
36 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
38 LL | fn next(&mut self) -> Option<Self::Item>;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 error: aborting due to 3 previous errors
43 For more information about this error, try `rustc --explain E0271`.