]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/no-unsafe-async.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / async-await / no-unsafe-async.stderr
1 error: expected one of `extern` or `fn`, found keyword `async`
2 --> $DIR/no-unsafe-async.rs:7:12
3 |
4 LL | unsafe async fn g() {}
5 | -------^^^^^
6 | | |
7 | | expected one of `extern` or `fn`
8 | help: `async` must come before `unsafe`: `async unsafe`
9 |
10 = note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
11
12 error: expected one of `extern` or `fn`, found keyword `async`
13 --> $DIR/no-unsafe-async.rs:11:8
14 |
15 LL | unsafe async fn f() {}
16 | -------^^^^^
17 | | |
18 | | expected one of `extern` or `fn`
19 | help: `async` must come before `unsafe`: `async unsafe`
20 |
21 = note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
22
23 error: aborting due to 2 previous errors
24