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