1 warning: 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
4 LL | small.into_iter();
7 = note: `#[warn(array_into_iter)]` on by default
8 = warning: this changes meaning in Rust 2021
9 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
10 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
14 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
16 LL | IntoIterator::into_iter(small);
17 | ++++++++++++++++++++++++ ~
19 warning: 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
22 LL | [1, 2].into_iter();
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>
27 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
31 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
33 LL | IntoIterator::into_iter([1, 2]);
34 | ++++++++++++++++++++++++ ~
36 warning: 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
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>
44 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
48 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
50 LL | IntoIterator::into_iter(big);
51 | ++++++++++++++++++++++++ ~
53 warning: 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
56 LL | [0u8; 33].into_iter();
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>
61 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
63 LL | [0u8; 33].iter();
65 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
67 LL | IntoIterator::into_iter([0u8; 33]);
68 | ++++++++++++++++++++++++ ~
70 warning: 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
73 LL | Box::new(small).into_iter();
74 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
79 warning: 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
82 LL | Box::new([1, 2]).into_iter();
83 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
88 warning: 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
91 LL | Box::new(big).into_iter();
92 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
97 warning: 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
100 LL | Box::new([0u8; 33]).into_iter();
101 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
106 warning: 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
109 LL | Box::new(Box::new(small)).into_iter();
110 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
115 warning: 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
118 LL | Box::new(Box::new([1, 2])).into_iter();
119 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
124 warning: 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
127 LL | Box::new(Box::new(big)).into_iter();
128 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
133 warning: 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
136 LL | Box::new(Box::new([0u8; 33])).into_iter();
137 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
142 warning: 12 warnings emitted