]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33941.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / issues / issue-33941.rs
1 // compile-flags: -Zdeduplicate-diagnostics=yes
2
3 use std::collections::HashMap;
4
5 fn main() {
6     for _ in HashMap::new().iter().cloned() {} //~ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
7     //~^ ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
8     //~| ERROR expected `std::collections::hash_map::Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
9 }