summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-33941.rs
blob: a1213623e6f94f949190794dce7602ac6cbf83cf (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: -Zdeduplicate-diagnostics=yes

use std::collections::HashMap;

fn main() {
    for _ in HashMap::new().iter().cloned() {} //~ ERROR type mismatch
    //~^ ERROR type mismatch
    //~| ERROR type mismatch
}