]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
1b1a35ee 1error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
0731742a 2 --> $DIR/issue-33941.rs:4:36
abe05a73 3 |
532ac7d7 4LL | for _ in HashMap::new().iter().cloned() {}
abe05a73
XL
5 | ^^^^^^ expected tuple, found reference
6 |
60c5eb7d
XL
7 = note: expected tuple `(&_, &_)`
8 found reference `&_`
abe05a73 9
1b1a35ee 10error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
0731742a 11 --> $DIR/issue-33941.rs:4:14
abe05a73 12 |
532ac7d7 13LL | for _ in HashMap::new().iter().cloned() {}
2c00a5a8 14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
abe05a73 15 |
60c5eb7d
XL
16 = note: expected tuple `(&_, &_)`
17 found reference `&_`
1b1a35ee 18 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
abe05a73 19
1b1a35ee 20error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
f035d41b
XL
21 --> $DIR/issue-33941.rs:4:14
22 |
23LL | for _ in HashMap::new().iter().cloned() {}
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
25 |
26 = note: expected tuple `(&_, &_)`
27 found reference `&_`
1b1a35ee 28 = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
f035d41b
XL
29
30error: aborting due to 3 previous errors
abe05a73 31
0531ce1d 32For more information about this error, try `rustc --explain E0271`.