1 error[E0271]: expected `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: the method call chain might not have had the expected associated types
10 --> $DIR/issue-33941.rs:6:29
12 LL | for _ in HashMap::new().iter().cloned() {}
13 | -------------- ^^^^^^ `Iterator::Item` is `(&_, &_)` here
15 | this expression has type `HashMap<_, _>`
16 note: required by a bound in `cloned`
17 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
19 error[E0271]: expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
20 --> $DIR/issue-33941.rs:6:14
22 LL | for _ in HashMap::new().iter().cloned() {}
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
25 = note: expected tuple `(&_, &_)`
27 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `Iterator`
28 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `IntoIterator`
30 error[E0271]: expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
31 --> $DIR/issue-33941.rs:6:14
33 LL | for _ in HashMap::new().iter().cloned() {}
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
36 = note: expected tuple `(&_, &_)`
38 = note: required for `Cloned<std::collections::hash_map::Iter<'_, _, _>>` to implement `Iterator`
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0271`.