summary refs log tree commit diff
path: root/src/test/ui/issues/issue-33941.rs
blob: 4fb805b37e03f02330f2bc77637b0a231b539b80 (plain)
1
2
3
4
5
6
7
use std::collections::HashMap;

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