]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-33941.stderr
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[rust.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    = note: required because of the requirements on the impl of `IntoIterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
20    = note: required by `into_iter`
21
22 error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _, _> as Iterator>::Item == &_`
23   --> $DIR/issue-33941.rs:4:14
24    |
25 LL |     for _ in HashMap::new().iter().cloned() {}
26    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple, found reference
27    |
28    = note:  expected tuple `(&_, &_)`
29            found reference `&_`
30    = note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
31    = note: required by `std::iter::Iterator::next`
32
33 error: aborting due to 3 previous errors
34
35 For more information about this error, try `rustc --explain E0271`.