blob: b0736204a081145c752e126e84303ef5a1b9c7a4 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | //@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@ 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 `(&_, &_)`
}
 |