]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-33941.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-33941.stderr
1 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
2 --> $DIR/issue-33941.rs:4:36
3 |
4 LL | for _ in HashMap::new().iter().cloned() {}
5 | ^^^^^^ expected tuple, found reference
6 |
7 = note: expected tuple `(&_, &_)`
8 found reference `&_`
9
10 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
11 --> $DIR/issue-33941.rs:4:14
12 |
13 LL | for _ in HashMap::new().iter().cloned() {}
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
15 |
16 = note: expected tuple `(&_, &_)`
17 found reference `&_`
18 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
19
20 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
21 --> $DIR/issue-33941.rs:4:14
22 |
23 LL | for _ in HashMap::new().iter().cloned() {}
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
25 |
26 = note: expected tuple `(&_, &_)`
27 found reference `&_`
28 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
29
30 error: aborting due to 3 previous errors
31
32 For more information about this error, try `rustc --explain E0271`.