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-2018.rs:14:34
4 LL | let _: Iter<'_, i32> = array.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
12 LL | let _: Iter<'_, i32> = array.iter();
14 help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
16 LL | let _: Iter<'_, i32> = IntoIterator::into_iter(array);
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-2018.rs:18:44
22 LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
23 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `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>
28 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
29 --> $DIR/into-iter-on-arrays-2018.rs:22:43
31 LL | let _: Iter<'_, i32> = Rc::new(array).into_iter();
32 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
34 = warning: this changes meaning in Rust 2021
35 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
37 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
38 --> $DIR/into-iter-on-arrays-2018.rs:25:41
40 LL | let _: Iter<'_, i32> = Array(array).into_iter();
41 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
43 = warning: this changes meaning in Rust 2021
44 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
46 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
47 --> $DIR/into-iter-on-arrays-2018.rs:32:24
49 LL | for _ in [1, 2, 3].into_iter() {}
52 = warning: this changes meaning in Rust 2021
53 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
54 help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
56 LL | for _ in [1, 2, 3].iter() {}
58 help: or remove `.into_iter()` to iterate by value
60 LL - for _ in [1, 2, 3].into_iter() {}
61 LL + for _ in [1, 2, 3] {}
64 warning: 5 warnings emitted