@@ -13,43 +13,43 @@ error[E0277]: `[RangeInclusive<{integer}>; 1]` is not an iterator
1313 --> $DIR/array-of-ranges.rs:4:14
1414 |
1515LL | for _ in [0..=1] {}
16- | ^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
16+ | ^^^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
1717 |
1818 = help: the trait `Iterator` is not implemented for `[RangeInclusive<{integer}>; 1]`
19- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
19+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
2020 = note: required because of the requirements on the impl of `IntoIterator` for `[RangeInclusive<{integer}>; 1]`
2121 = note: required by `into_iter`
2222
2323error[E0277]: `[RangeFrom<{integer}>; 1]` is not an iterator
2424 --> $DIR/array-of-ranges.rs:6:14
2525 |
2626LL | for _ in [0..] {}
27- | ^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
27+ | ^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
2828 |
2929 = help: the trait `Iterator` is not implemented for `[RangeFrom<{integer}>; 1]`
30- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
30+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
3131 = note: required because of the requirements on the impl of `IntoIterator` for `[RangeFrom<{integer}>; 1]`
3232 = note: required by `into_iter`
3333
3434error[E0277]: `[RangeTo<{integer}>; 1]` is not an iterator
3535 --> $DIR/array-of-ranges.rs:8:14
3636 |
3737LL | for _ in [..1] {}
38- | ^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
38+ | ^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
3939 |
4040 = help: the trait `Iterator` is not implemented for `[RangeTo<{integer}>; 1]`
41- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
41+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
4242 = note: required because of the requirements on the impl of `IntoIterator` for `[RangeTo<{integer}>; 1]`
4343 = note: required by `into_iter`
4444
4545error[E0277]: `[RangeToInclusive<{integer}>; 1]` is not an iterator
4646 --> $DIR/array-of-ranges.rs:10:14
4747 |
4848LL | for _ in [..=1] {}
49- | ^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
49+ | ^^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
5050 |
5151 = help: the trait `Iterator` is not implemented for `[RangeToInclusive<{integer}>; 1]`
52- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
52+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
5353 = note: required because of the requirements on the impl of `IntoIterator` for `[RangeToInclusive<{integer}>; 1]`
5454 = note: required by `into_iter`
5555
@@ -79,21 +79,21 @@ error[E0277]: `[std::ops::Range<{integer}>; 2]` is not an iterator
7979 --> $DIR/array-of-ranges.rs:19:14
8080 |
8181LL | for _ in [0..1, 2..3] {}
82- | ^^^^^^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
82+ | ^^^^^^^^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
8383 |
8484 = help: the trait `Iterator` is not implemented for `[std::ops::Range<{integer}>; 2]`
85- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
85+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
8686 = note: required because of the requirements on the impl of `IntoIterator` for `[std::ops::Range<{integer}>; 2]`
8787 = note: required by `into_iter`
8888
8989error[E0277]: `[RangeInclusive<{integer}>; 1]` is not an iterator
9090 --> $DIR/array-of-ranges.rs:21:14
9191 |
9292LL | for _ in [0..=1] {}
93- | ^^^^^^^ borrow the array with `&` or call `.iter()` on it to iterate over it
93+ | ^^^^^^^ arrays do not yet implement `IntoIterator`; try using `std::array::IntoIter::new(arr)`
9494 |
9595 = help: the trait `Iterator` is not implemented for `[RangeInclusive<{integer}>; 1]`
96- = note: arrays are not iterators, but slices like the following are: `&[1, 2, 3]`
96+ = note: see <https://github.com/rust-lang/rust/pull/65819> for more details
9797 = note: required because of the requirements on the impl of `IntoIterator` for `[RangeInclusive<{integer}>; 1]`
9898 = note: required by `into_iter`
9999
0 commit comments