-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Missing impl PartialEq<Vec<T>> for [T; N] #149017
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I got the following compile error:
There's an
impl PartialEq<[T; N]> for Vec<T>in std. However, the opposite impl (impl PartialEq<Vec<T>> for [T; N]) is missing.I have not checked if any other "opposite impls" are also missing.
Meta
Reproducible on the playground with version
1.93.0-nightly (2025-11-16 518b428304e0008859cb)