Files
rust/tests/ui/parser/issues/issue-87217-keyword-order/wrong-unsafe.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
392 B
Plaintext
Raw Normal View History

error: expected `fn`, found keyword `unsafe`
2024-10-31 11:39:45 +01:00
--> $DIR/wrong-unsafe.rs:10:8
|
LL | extern unsafe fn test() {}
| -------^^^^^^
| | |
| | expected `fn`
| help: `unsafe` must come before `extern`: `unsafe extern`
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
error: aborting due to 1 previous error