Invalid feature suggestion: #[feature(const_generics)] #80702
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
B-unstable
Blocker: Implemented in the nightly compiler and unstable.
C-bug
Category: This is a bug.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
When writing a const generic that uses a type other than
bool
,char
orinteger
, the compiler generates the following error message:However, this error message is wrong, as its missing a
!
in the feature suggestion.It should be
#![feature(const_generics)]
rather than#[feature(const_generics)]
The text was updated successfully, but these errors were encountered: