mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
10 lines
443 B
Rust
10 lines
443 B
Rust
// 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 `(&_, &_)`
|
|
}
|