Misleading error message when using a named constant as a struct alignment #121425
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
#[repr(align(N))]
does givealign
exactly one argument in parentheses, but the error implies that it doesn't.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: