This is a re-attempt of #72389 (which was reverted in #73594) Instead of using `ExpnKind::Desugaring` to represent operators, this PR checks the lang item directly.
7 lines
175 B
Rust
7 lines
175 B
Rust
use std::collections::HashMap;
|
|
|
|
fn main() {
|
|
for _ in HashMap::new().iter().cloned() {} //~ ERROR type mismatch
|
|
//~^ ERROR type mismatch
|
|
//~| ERROR type mismatch
|
|
}
|