1warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 2 --> $DIR/into-iter-on-arrays-lint.rs:11:11 3 | 4LL | small.into_iter(); 5 | ^^^^^^^^^ 6 | 7 = warning: this changes meaning in Rust 2021 8 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 9 = note: `#[warn(array_into_iter)]` on by default 10help: use `.iter()` instead of `.into_iter()` to avoid ambiguity 11 | 12LL | small.iter(); 13 | ~~~~ 14help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value 15 | 16LL | IntoIterator::into_iter(small); 17 | ++++++++++++++++++++++++ ~ 18 19warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 20 --> $DIR/into-iter-on-arrays-lint.rs:14:12 21 | 22LL | [1, 2].into_iter(); 23 | ^^^^^^^^^ 24 | 25 = warning: this changes meaning in Rust 2021 26 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 27help: use `.iter()` instead of `.into_iter()` to avoid ambiguity 28 | 29LL | [1, 2].iter(); 30 | ~~~~ 31help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value 32 | 33LL | IntoIterator::into_iter([1, 2]); 34 | ++++++++++++++++++++++++ ~ 35 36warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 37 --> $DIR/into-iter-on-arrays-lint.rs:17:9 38 | 39LL | big.into_iter(); 40 | ^^^^^^^^^ 41 | 42 = warning: this changes meaning in Rust 2021 43 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 44help: use `.iter()` instead of `.into_iter()` to avoid ambiguity 45 | 46LL | big.iter(); 47 | ~~~~ 48help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value 49 | 50LL | IntoIterator::into_iter(big); 51 | ++++++++++++++++++++++++ ~ 52 53warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 54 --> $DIR/into-iter-on-arrays-lint.rs:20:15 55 | 56LL | [0u8; 33].into_iter(); 57 | ^^^^^^^^^ 58 | 59 = warning: this changes meaning in Rust 2021 60 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 61help: use `.iter()` instead of `.into_iter()` to avoid ambiguity 62 | 63LL | [0u8; 33].iter(); 64 | ~~~~ 65help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value 66 | 67LL | IntoIterator::into_iter([0u8; 33]); 68 | ++++++++++++++++++++++++ ~ 69 70warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 71 --> $DIR/into-iter-on-arrays-lint.rs:24:21 72 | 73LL | Box::new(small).into_iter(); 74 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 75 | 76 = warning: this changes meaning in Rust 2021 77 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 78 79warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 80 --> $DIR/into-iter-on-arrays-lint.rs:27:22 81 | 82LL | Box::new([1, 2]).into_iter(); 83 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 84 | 85 = warning: this changes meaning in Rust 2021 86 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 87 88warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 89 --> $DIR/into-iter-on-arrays-lint.rs:30:19 90 | 91LL | Box::new(big).into_iter(); 92 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 93 | 94 = warning: this changes meaning in Rust 2021 95 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 96 97warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 98 --> $DIR/into-iter-on-arrays-lint.rs:33:25 99 | 100LL | Box::new([0u8; 33]).into_iter(); 101 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 102 | 103 = warning: this changes meaning in Rust 2021 104 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 105 106warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 107 --> $DIR/into-iter-on-arrays-lint.rs:37:31 108 | 109LL | Box::new(Box::new(small)).into_iter(); 110 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 111 | 112 = warning: this changes meaning in Rust 2021 113 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 114 115warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 116 --> $DIR/into-iter-on-arrays-lint.rs:40:32 117 | 118LL | Box::new(Box::new([1, 2])).into_iter(); 119 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 120 | 121 = warning: this changes meaning in Rust 2021 122 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 123 124warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 125 --> $DIR/into-iter-on-arrays-lint.rs:43:29 126 | 127LL | Box::new(Box::new(big)).into_iter(); 128 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 129 | 130 = warning: this changes meaning in Rust 2021 131 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 132 133warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 134 --> $DIR/into-iter-on-arrays-lint.rs:46:35 135 | 136LL | Box::new(Box::new([0u8; 33])).into_iter(); 137 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` 138 | 139 = warning: this changes meaning in Rust 2021 140 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html> 141 142warning: 12 warnings emitted 143 144