fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.9 KiB48 linesraw
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   |
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
10error[E0277]: arrays only have std trait implementations for lengths 0..=32
11  --> $DIR/alloc-traits-no-impls-length-33.rs:9:51
12   |
13LL | 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
19error[E0277]: arrays only have std trait implementations for lengths 0..=32
20  --> $DIR/alloc-traits-no-impls-length-33.rs:19:48
21   |
22LL | 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
28error[E0277]: arrays only have std trait implementations for lengths 0..=32
29  --> $DIR/alloc-traits-no-impls-length-33.rs:27:56
30   |
31LL | 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
37error[E0277]: arrays only have std trait implementations for lengths 0..=32
38  --> $DIR/alloc-traits-no-impls-length-33.rs:35:60
39   |
40LL | 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
46error: aborting due to 5 previous errors
47
48For more information about this error, try `rustc --explain E0277`.