]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/iterators/into-iter-on-arrays-lint.rs
8 // Expressions that should trigger the lint
10 //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter`
11 //~| WARNING this was previously accepted by the compiler but is being phased out
13 //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter`
14 //~| WARNING this was previously accepted by the compiler but is being phased out
16 //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter`
17 //~| WARNING this was previously accepted by the compiler but is being phased out
18 [0u8; 33].into_iter();
19 //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter`
20 //~| WARNING this was previously accepted by the compiler but is being phased out
23 // Expressions that should not
24 (&[1, 2]).into_iter();
26 (&[0u8; 33]).into_iter();
30 (&small
as &[_
]).into_iter();
31 small
[..].into_iter();
32 std
::iter
::IntoIterator
::into_iter(&[1, 2]);