]> git.proxmox.com Git - rustc.git/blob - src/test/ui/iterators/into-iter-on-arrays-2018.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / iterators / into-iter-on-arrays-2018.stderr
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-2018.rs:14:34
3 |
4 LL | let _: Iter<'_, i32> = array.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-2018.rs:18: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>
19
20 warning: 2 warnings emitted
21
22 Future incompatibility report: Future breakage date: None, diagnostic:
23 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.
24 --> $DIR/into-iter-on-arrays-2018.rs:14:34
25 |
26 LL | let _: Iter<'_, i32> = array.into_iter();
27 | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
28 |
29 = note: `#[warn(array_into_iter)]` on by default
30 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31 = note: for more information, see issue #66145 <https://github.com/rust-lang/rust/issues/66145>
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:18: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>
42