]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33941.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[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 type mismatch
7     //~^ ERROR type mismatch
8     //~| ERROR type mismatch
9 }