Files
rust/tests/ui/issues/issue-33941.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
471 B
Rust
Raw Normal View History

//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
2022-03-20 20:02:18 +01:00
//@ compile-flags: -Zdeduplicate-diagnostics=yes
use std::collections::HashMap;
fn main() {
for _ in HashMap::new().iter().cloned() {}
2022-12-13 15:52:16 -08:00
//~^ ERROR expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
//~| ERROR expected `Iter<'_, _, _>` to be an iterator that yields `&_`, but it yields `(&_, &_)`
}