-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
Currently:
Vec<T>implementsPartialEqfor&'_ [B; N],&'_ [B],&'_ mut [B], and[B; N](see https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-PartialEq%3C%26%27_%20%5BB%3B%20N%5D%3E)[T; N]implementsPartialEqfor&'b [B],&'b mut [B],[B; N], and[B](see https://doc.rust-lang.org/std/primitive.array.html#impl-PartialEq%3C%26%27b%20%5BB%5D%3E)&'b [B],&'b mut [B], and[B]implementPartialEq<[A; N]>(see https://doc.rust-lang.org/std/primitive.slice.html#impl-PartialEq%3C%5BA%3B%20N%5D%3E)[A]implementsPartialEq<[B]>(see https://doc.rust-lang.org/std/primitive.slice.html#impl-PartialEq%3C%5BA%3B%20N%5D%3E)
But neither [T; N], &'_ [T], &'_ mut [T], nor [T] implement PartialEq<Vec<T>>. This means that equality tests have to be pointlessly flipped. Is there any reason for this behavior? Would it be possible to fix this?
OnlyLys, iago-lito and ryoqun
Metadata
Metadata
Assignees
Labels
No labels