diff options
Diffstat (limited to 'src/test/ui/iterators/into-iter-on-arrays-lint.fixed')
| -rw-r--r-- | src/test/ui/iterators/into-iter-on-arrays-lint.fixed | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/iterators/into-iter-on-arrays-lint.fixed b/src/test/ui/iterators/into-iter-on-arrays-lint.fixed index f88a52d3159..c1aa3d70f77 100644 --- a/src/test/ui/iterators/into-iter-on-arrays-lint.fixed +++ b/src/test/ui/iterators/into-iter-on-arrays-lint.fixed @@ -19,6 +19,31 @@ fn main() { //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter` //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new(small).iter(); + //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new([1, 2]).iter(); + //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new(big).iter(); + //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new([0u8; 33]).iter(); + //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + + Box::new(Box::new(small)).iter(); + //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new(Box::new([1, 2])).iter(); + //~^ WARNING this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new(Box::new(big)).iter(); + //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out + Box::new(Box::new([0u8; 33])).iter(); + //~^ WARNING this method call currently resolves to `<&[T] as IntoIterator>::into_iter` + //~| WARNING this was previously accepted by the compiler but is being phased out // Expressions that should not (&[1, 2]).into_iter(); |
