extern "C" const unsafe fn
does not trigger the "keyword order for functions declaration" note
#140171
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-parser
Area: The lexing & parsing of Rust source code to an AST
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
this is also not very relevant. the extra diagnostic is probably not emitted because there are two misplaced tokens (
extern "C"
).Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: