@@ -5,7 +5,7 @@ LL | for _ in [1, 2] {}
55 | ^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
66 |
77 = 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]`
99 = note: required by `std::iter::IntoIterator::into_iter`
1010
1111error[E0277]: `[{integer}; 2]` is not an iterator
@@ -15,7 +15,7 @@ LL | for _ in x {}
1515 | ^ borrow the array with `&` or call `.iter()` on it to iterate over it
1616 |
1717 = 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]`
1919 = note: required by `std::iter::IntoIterator::into_iter`
2020
2121error[E0277]: `[{float}; 2]` is not an iterator
@@ -25,7 +25,7 @@ LL | for _ in [1.0, 2.0] {}
2525 | ^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
2626 |
2727 = 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]`
2929 = note: required by `std::iter::IntoIterator::into_iter`
3030
3131error: aborting due to 3 previous errors
0 commit comments