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