|
| 1 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 2 | + --> $DIR/alloc-traits-no-impls-length-33.rs:1:43 |
| 3 | + | |
| 4 | +LL | pub fn no_vec_partial_eq_array<A, B>() -> impl PartialEq<[B; 33]> |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[B; 33]` |
| 6 | + | |
| 7 | + = note: required because of the requirements on the impl of `std::cmp::PartialEq<[B; 33]>` for `std::vec::Vec<A>` |
| 8 | + = note: the return type of a function must have a statically known size |
| 9 | + |
| 10 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 11 | + --> $DIR/alloc-traits-no-impls-length-33.rs:9:51 |
| 12 | + | |
| 13 | +LL | pub fn no_vec_partial_eq_ref_array<'a, A, B>() -> impl PartialEq<&'a [B; 33]> |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[B; 33]` |
| 15 | + | |
| 16 | + = note: required because of the requirements on the impl of `std::cmp::PartialEq<&'a [B; 33]>` for `std::vec::Vec<A>` |
| 17 | + = note: the return type of a function must have a statically known size |
| 18 | + |
| 19 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 20 | + --> $DIR/alloc-traits-no-impls-length-33.rs:19:48 |
| 21 | + | |
| 22 | +LL | pub fn no_vecdeque_partial_eq_array<A, B>() -> impl PartialEq<[B; 33]> |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[B; 33]` |
| 24 | + | |
| 25 | + = note: required because of the requirements on the impl of `std::cmp::PartialEq<[B; 33]>` for `std::collections::VecDeque<A>` |
| 26 | + = note: the return type of a function must have a statically known size |
| 27 | + |
| 28 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 29 | + --> $DIR/alloc-traits-no-impls-length-33.rs:27:56 |
| 30 | + | |
| 31 | +LL | pub fn no_vecdeque_partial_eq_ref_array<'a, A, B>() -> impl PartialEq<&'a [B; 33]> |
| 32 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[B; 33]` |
| 33 | + | |
| 34 | + = note: required because of the requirements on the impl of `std::cmp::PartialEq<&'a [B; 33]>` for `std::collections::VecDeque<A>` |
| 35 | + = note: the return type of a function must have a statically known size |
| 36 | + |
| 37 | +error[E0277]: arrays only have std trait implementations for lengths 0..=32 |
| 38 | + --> $DIR/alloc-traits-no-impls-length-33.rs:35:60 |
| 39 | + | |
| 40 | +LL | pub fn no_vecdeque_partial_eq_ref_mut_array<'a, A, B>() -> impl PartialEq<&'a mut [B; 33]> |
| 41 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[B; 33]` |
| 42 | + | |
| 43 | + = note: required because of the requirements on the impl of `std::cmp::PartialEq<&'a mut [B; 33]>` for `std::collections::VecDeque<A>` |
| 44 | + = note: the return type of a function must have a statically known size |
| 45 | + |
| 46 | +error: aborting due to 5 previous errors |
| 47 | + |
| 48 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments