3fdc99193e
This was handled correctly already for `extern unsafe fn()`. Co-authored-by: Folkert <folkert@folkertdev.nl>
11 lines
351 B
Rust
11 lines
351 B
Rust
trait T {
|
|
extern "Rust" unsafe fn foo();
|
|
//~^ ERROR expected `fn`, found keyword `unsafe`
|
|
//~| NOTE expected `fn`
|
|
//~| HELP `unsafe` must come before `extern "Rust"`
|
|
//~| SUGGESTION unsafe extern "Rust"
|
|
//~| NOTE keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
|
|
}
|
|
|
|
fn main() {}
|