]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-19398.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-19398.stderr
1 error: expected `{`, found keyword `unsafe`
2 --> $DIR/issue-19398.rs:2:19
3 |
4 LL | trait T {
5 | - while parsing this item list starting here
6 LL | extern "Rust" unsafe fn foo();
7 | --------------^^^^^^
8 | | |
9 | | expected `{`
10 | help: `unsafe` must come before `extern "Rust"`: `unsafe extern "Rust"`
11 LL |
12 LL | }
13 | - the item list ends here
14 |
15 = note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
16
17 error: aborting due to previous error
18