You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/ui/iterators/into-iter-on-arrays-2018.stderr
+5-14
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
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
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
21
-
|
22
-
LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
23
-
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
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>
27
-
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
20
+
--> $DIR/into-iter-on-arrays-2018.rs:19:43
30
21
|
31
22
LL | let _: Iter<'_, i32> = Rc::new(array).into_iter();
32
23
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
36
27
37
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
38
-
--> $DIR/into-iter-on-arrays-2018.rs:25:41
29
+
--> $DIR/into-iter-on-arrays-2018.rs:22:41
39
30
|
40
31
LL | let _: Iter<'_, i32> = Array(array).into_iter();
41
32
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/IntoIterator-for-arrays.html>
45
36
46
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
47
-
--> $DIR/into-iter-on-arrays-2018.rs:32:24
38
+
--> $DIR/into-iter-on-arrays-2018.rs:29:24
48
39
|
49
40
LL | for _ in [1, 2, 3].into_iter() {}
50
41
| ^^^^^^^^^
@@ -61,5 +52,5 @@ LL - for _ in [1, 2, 3].into_iter() {}
Copy file name to clipboardexpand all lines: tests/ui/iterators/into-iter-on-arrays-lint.stderr
+1-73
Original file line number
Diff line number
Diff line change
@@ -67,77 +67,5 @@ help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicit
67
67
LL | IntoIterator::into_iter([0u8; 33]);
68
68
| ++++++++++++++++++++++++ ~
69
69
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
72
-
|
73
-
LL | 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
-
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
81
-
|
82
-
LL | 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
-
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
90
-
|
91
-
LL | 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
-
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
99
-
|
100
-
LL | 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
-
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
108
-
|
109
-
LL | 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
-
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
117
-
|
118
-
LL | 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
-
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
126
-
|
127
-
LL | 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
-
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
135
-
|
136
-
LL | 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>
0 commit comments