fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as std::iter::Iterator>::Item == &_` 2 --> $DIR/issue-33941.rs:4:36 3 | 4LL | for _ in HashMap::new().iter().cloned() {} 5 | ^^^^^^ expected tuple, found reference 6 | 7 = note: expected tuple `(&_, &_)` 8 found reference `&_` 9 10error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as std::iter::Iterator>::Item == &_` 11 --> $DIR/issue-33941.rs:4:14 12 | 13LL | for _ in HashMap::new().iter().cloned() {} 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference 15 | 16 = note: expected tuple `(&_, &_)` 17 found reference `&_` 18 = note: required because of the requirements on the impl of `std::iter::Iterator` for `std::iter::Cloned<std::collections::hash_map::Iter<'_, _, _>>` 19 20error: aborting due to 2 previous errors 21 22For more information about this error, try `rustc --explain E0271`.