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 tuple, found reference
16 = note: expected 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`
22 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
23 --> $DIR/issue-33941.rs:4:14
25 LL | for _ in HashMap::new().iter().cloned() {}
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
28 = note: expected tuple `(&_, &_)`
30 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
31 = note: required by `std::iter::Iterator::next`
33 error: aborting due to 3 previous errors
35 For more information about this error, try `rustc --explain E0271`.