mirror of https://github.com/rust-lang/rust.git
13 lines
471 B
Rust
13 lines
471 B
Rust
//@ 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 `(&_, &_)`
|
|
}
|