Closed
Description
Given the following code:
pub extern "C" unsafe fn test() {}
The current output is:
error: expected `{`, found keyword `unsafe`
--> tests/syscalls.rs:14:16
|
14 | pub extern "C" unsafe fn test() {}
| ^^^^^^ expected `{`
Ideally the output should look like:
error: wrongfully placed unsafe keyword
--> tests/syscalls.rs:14:16
|
14 | pub extern "C" unsafe fn test() {}
| ^^^^ "Move after access specifier"
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTCategory: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that doesn't give enough information about the problem at hand.Relevant to the compiler team, which will review and decide on the PR/issue.