about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-19398.stderr
blob: 2b97ec50c91721c1b9cd90b8d5aed9dbb6b30018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected `fn`, found keyword `unsafe`
  --> $DIR/issue-19398.rs:2:19
   |
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`

error: aborting due to 1 previous error