Diagnostic for const generic enum on stable suggests requirements for nightly-only feature (PartialEq, Eq) #95150
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground link):
Rust gives a diagnostic suggesting deriving
PartialEq, Eq
:However, adding
#[derive(PartialEq, Eq)]
leads the compiler to still give an error about not supporting this.A non-nightly compiler should not give the second error at all; it should only give the first, saying that the only supported types are integers,
bool
andchar
.The text was updated successfully, but these errors were encountered: