rust/tests/ui/parser/issues/issue-19398.stderr

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

14 lines
450 B
Plaintext
Raw Normal View History

error: expected `fn`, found keyword `unsafe`
--> $DIR/issue-19398.rs:2:19
2018-10-20 15:36:17 -05:00
|
LL | extern "Rust" unsafe fn foo();
| --------------^^^^^^
| | |
| | expected `fn`
| help: `unsafe` must come before `extern "Rust"`: `unsafe extern "Rust"`
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
2018-10-20 15:36:17 -05:00
error: aborting due to 1 previous error
2018-10-20 15:36:17 -05:00