|
| 1 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 2 | + --> $DIR/into-iter-no-impls-length-33.rs:12:5 |
| 3 | + | |
| 4 | +LL | IntoIter::new([0i32; 33]) |
| 5 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 6 | + | |
| 7 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 8 | + |
| 9 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 10 | + --> $DIR/into-iter-no-impls-length-33.rs:10:25 |
| 11 | + | |
| 12 | +LL | pub fn no_iterator() -> impl Iterator<Item = i32> { |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 14 | + | |
| 15 | + = note: required because of the requirements on the impl of `std::iter::Iterator` for `std::array::IntoIter<i32, 33usize>` |
| 16 | + = note: the return type of a function must have a statically known size |
| 17 | + |
| 18 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 19 | + --> $DIR/into-iter-no-impls-length-33.rs:18:5 |
| 20 | + | |
| 21 | +LL | IntoIter::new([0i32; 33]) |
| 22 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 23 | + | |
| 24 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 25 | + |
| 26 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 27 | + --> $DIR/into-iter-no-impls-length-33.rs:16:38 |
| 28 | + | |
| 29 | +LL | pub fn no_double_ended_iterator() -> impl DoubleEndedIterator { |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 31 | + | |
| 32 | + = note: required because of the requirements on the impl of `std::iter::DoubleEndedIterator` for `std::array::IntoIter<i32, 33usize>` |
| 33 | + = note: the return type of a function must have a statically known size |
| 34 | + |
| 35 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 36 | + --> $DIR/into-iter-no-impls-length-33.rs:24:5 |
| 37 | + | |
| 38 | +LL | IntoIter::new([0i32; 33]) |
| 39 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 40 | + | |
| 41 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 42 | + |
| 43 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 44 | + --> $DIR/into-iter-no-impls-length-33.rs:22:36 |
| 45 | + | |
| 46 | +LL | pub fn no_exact_size_iterator() -> impl ExactSizeIterator { |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 48 | + | |
| 49 | + = note: required because of the requirements on the impl of `std::iter::ExactSizeIterator` for `std::array::IntoIter<i32, 33usize>` |
| 50 | + = note: the return type of a function must have a statically known size |
| 51 | + |
| 52 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 53 | + --> $DIR/into-iter-no-impls-length-33.rs:30:5 |
| 54 | + | |
| 55 | +LL | IntoIter::new([0i32; 33]) |
| 56 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 57 | + | |
| 58 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 59 | + |
| 60 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 61 | + --> $DIR/into-iter-no-impls-length-33.rs:28:31 |
| 62 | + | |
| 63 | +LL | pub fn no_fused_iterator() -> impl FusedIterator { |
| 64 | + | ^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 65 | + | |
| 66 | + = note: required because of the requirements on the impl of `std::iter::FusedIterator` for `std::array::IntoIter<i32, 33usize>` |
| 67 | + = note: the return type of a function must have a statically known size |
| 68 | + |
| 69 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 70 | + --> $DIR/into-iter-no-impls-length-33.rs:36:5 |
| 71 | + | |
| 72 | +LL | IntoIter::new([0i32; 33]) |
| 73 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 74 | + | |
| 75 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 76 | + |
| 77 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 78 | + --> $DIR/into-iter-no-impls-length-33.rs:34:28 |
| 79 | + | |
| 80 | +LL | pub fn no_trusted_len() -> impl TrustedLen { |
| 81 | + | ^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 82 | + | |
| 83 | + = note: required because of the requirements on the impl of `std::iter::TrustedLen` for `std::array::IntoIter<i32, 33usize>` |
| 84 | + = note: the return type of a function must have a statically known size |
| 85 | + |
| 86 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 87 | + --> $DIR/into-iter-no-impls-length-33.rs:42:5 |
| 88 | + | |
| 89 | +LL | IntoIter::new([0i32; 33]) |
| 90 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 91 | + | |
| 92 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 93 | + |
| 94 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 95 | + --> $DIR/into-iter-no-impls-length-33.rs:40:22 |
| 96 | + | |
| 97 | +LL | pub fn no_clone() -> impl Clone { |
| 98 | + | ^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 99 | + | |
| 100 | + = note: required because of the requirements on the impl of `std::clone::Clone` for `std::array::IntoIter<i32, 33usize>` |
| 101 | + = note: the return type of a function must have a statically known size |
| 102 | + |
| 103 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 104 | + --> $DIR/into-iter-no-impls-length-33.rs:48:5 |
| 105 | + | |
| 106 | +LL | IntoIter::new([0i32; 33]) |
| 107 | + | ^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 108 | + | |
| 109 | + = note: required by `std::array::IntoIter::<T, N>::new` |
| 110 | + |
| 111 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 112 | + --> $DIR/into-iter-no-impls-length-33.rs:46:22 |
| 113 | + | |
| 114 | +LL | pub fn no_debug() -> impl Debug { |
| 115 | + | ^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[i32; 33]` |
| 116 | + | |
| 117 | + = note: required because of the requirements on the impl of `std::fmt::Debug` for `std::array::IntoIter<i32, 33usize>` |
| 118 | + = note: the return type of a function must have a statically known size |
| 119 | + |
| 120 | +error: aborting due to 14 previous errors |
| 121 | + |
| 122 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments