@@ -11,10 +11,10 @@ error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _,
11
11
--> $DIR/issue-33941.rs:4:14
12
12
|
13
13
LL | for _ in HashMap::new().iter().cloned() {}
14
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple , found reference
14
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference , found tuple
15
15
|
16
- = note: expected tuple `(&_, &_) `
17
- found reference `&_ `
16
+ = note: expected reference `&_ `
17
+ found tuple `(&_, &_) `
18
18
= note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
19
19
= note: required because of the requirements on the impl of `IntoIterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
20
20
= note: required by `into_iter`
@@ -23,10 +23,10 @@ error[E0271]: type mismatch resolving `<std::collections::hash_map::Iter<'_, _,
23
23
--> $DIR/issue-33941.rs:4:14
24
24
|
25
25
LL | for _ in HashMap::new().iter().cloned() {}
26
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected tuple , found reference
26
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected reference , found tuple
27
27
|
28
- = note: expected tuple `(&_, &_) `
29
- found reference `&_ `
28
+ = note: expected reference `&_ `
29
+ found tuple `(&_, &_) `
30
30
= note: required because of the requirements on the impl of `Iterator` for `Cloned<std::collections::hash_map::Iter<'_, _, _>>`
31
31
= note: required by `std::iter::Iterator::next`
32
32
0 commit comments