@@ -5,7 +5,7 @@ LL | for _ in [1, 2] {}
5
5
| ^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
6
6
|
7
7
= help: the trait `std::iter::Iterator` is not implemented for `[{integer}; 2]`
8
- = note: arrays are not an iterators, but slices like the following are: `&[1, 2, 3]`
8
+ = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
9
9
= note: required by `std::iter::IntoIterator::into_iter`
10
10
11
11
error[E0277]: `[{integer}; 2]` is not an iterator
@@ -15,7 +15,7 @@ LL | for _ in x {}
15
15
| ^ borrow the array with `&` or call `.iter()` on it to iterate over it
16
16
|
17
17
= help: the trait `std::iter::Iterator` is not implemented for `[{integer}; 2]`
18
- = note: arrays are not an iterators, but slices like the following are: `&[1, 2, 3]`
18
+ = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
19
19
= note: required by `std::iter::IntoIterator::into_iter`
20
20
21
21
error[E0277]: `[{float}; 2]` is not an iterator
@@ -25,7 +25,7 @@ LL | for _ in [1.0, 2.0] {}
25
25
| ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
26
26
|
27
27
= help: the trait `std::iter::Iterator` is not implemented for `[{float}; 2]`
28
- = note: arrays are not an iterators, but slices like the following are: `&[1, 2, 3]`
28
+ = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
29
29
= note: required by `std::iter::IntoIterator::into_iter`
30
30
31
31
error: aborting due to 3 previous errors
0 commit comments