|
1 |
| -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-lint.rs:9:11 |
3 |
| - | |
4 |
| -LL | small.into_iter(); |
5 |
| - | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` |
6 |
| - | |
7 |
| - = note: `#[warn(array_into_iter)]` on by default |
8 |
| - = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
9 |
| - = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145> |
10 |
| - |
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-lint.rs:12:12 |
13 |
| - | |
14 |
| -LL | [1, 2].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> |
19 |
| - |
20 | 1 | warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
|
21 |
| - --> $DIR/into-iter-on-arrays-lint.rs:15:9 |
| 2 | + --> $DIR/into-iter-on-arrays-lint.rs:9:9 |
22 | 3 | |
|
23 | 4 | LL | big.into_iter();
|
24 | 5 | | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
|
25 | 6 | |
|
| 7 | + = note: `#[warn(array_into_iter)]` on by default |
26 | 8 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
27 | 9 | = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
|
28 | 10 |
|
29 | 11 | warning: this method call currently resolves to `<&[T] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
|
30 |
| - --> $DIR/into-iter-on-arrays-lint.rs:18:15 |
| 12 | + --> $DIR/into-iter-on-arrays-lint.rs:12:15 |
31 | 13 | |
|
32 | 14 | LL | [0u8; 33].into_iter();
|
33 | 15 | | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
|
|
0 commit comments