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
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
2
-
--> $DIR/into-iter-on-arrays-2018.rs:11:34
2
+
--> $DIR/into-iter-on-arrays-2018.rs:12:34
3
3
|
4
4
LL | let _: Iter<'_, i32> = array.into_iter();
5
5
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9
9
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
10
10
11
-
warning: 1 warning emitted
11
+
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
12
+
--> $DIR/into-iter-on-arrays-2018.rs:16:44
13
+
|
14
+
LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
15
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
16
+
|
17
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
18
+
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
15
-
--> $DIR/into-iter-on-arrays-2018.rs:11:34
24
+
--> $DIR/into-iter-on-arrays-2018.rs:12:34
16
25
|
17
26
LL | let _: Iter<'_, i32> = array.into_iter();
18
27
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
22
31
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
23
32
33
+
Future breakage date: None, diagnostic:
34
+
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
35
+
--> $DIR/into-iter-on-arrays-2018.rs:16:44
36
+
|
37
+
LL | let _: Iter<'_, i32> = Box::new(array).into_iter();
38
+
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
39
+
|
40
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
41
+
= note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
0 commit comments