You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This piece of code fails with the following error message:
error: expected identifier, found keyword `const`
--> strum_tests\tests\enum_map.rs:15:10
|
15 | #[derive(EnumMap)]
| ^^^^^^^ expected identifier, found keyword
16 | enum Keyword{
| ------- while parsing this struct
|
= note: this error originates in the derive macro `EnumMap` (in Nightly builds, run with -Z macro-backtrace for more info)
help: escape `const` to use it as an identifier
|
15 | #[derive(r#EnumMap)]
| ++
From this message, one could understand that the problem is the Const variant, but the EnumMap macro should probably either escape the identifier or return a clearer error
The text was updated successfully, but these errors were encountered:
This piece of code fails with the following error message:
From this message, one could understand that the problem is the
Const
variant, but the EnumMap macro should probably either escape the identifier or return a clearer errorThe text was updated successfully, but these errors were encountered: