1 error[E0271]: expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
2 --> $DIR/issue-33941.rs:6:36
4 LL | for _ in HashMap::new().iter().cloned() {}
5 | ^^^^^^ expected reference, found tuple
7 = note: expected reference `&_`
9 note: required by a bound in `cloned`
10 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
12 LL | Self: Sized + Iterator<Item = &'a T>,
13 | ^^^^^^^^^^^^ required by this bound in `cloned`
15 error[E0271]: expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
16 --> $DIR/issue-33941.rs:6:14
18 LL | for _ in HashMap::new().iter().cloned() {}
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
21 = note: expected tuple `(&_, &_)`
23 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `Iterator`
24 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `IntoIterator`
26 error[E0271]: expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
27 --> $DIR/issue-33941.rs:6:14
29 LL | for _ in HashMap::new().iter().cloned() {}
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
32 = note: expected tuple `(&_, &_)`
34 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `Iterator`
36 error: aborting due to 3 previous errors
38 For more information about this error, try `rustc --explain E0271`.