summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-33941.rs
blob: e3b6dcf55a7448296ea39c39de2c428b40e59ff2 (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 expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
    //~^ ERROR expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
    //~| ERROR expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
}