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"
@rustbot claim
Rollup merge of rust-lang#91133 - terrarier2111:unsafe-diagnostic, r=…
Activity
terrarier2111 commentedon Nov 16, 2021
@rustbot claim
Rollup merge of rust-lang#91133 - terrarier2111:unsafe-diagnostic, r=…