]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-unsafe-async.stderr
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[rust.git] / src / test / 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 | impl S {
5    |        - while parsing this item list starting here
6 LL |     #[cfg(FALSE)]
7 LL |     unsafe async fn g() {}
8    |     -------^^^^^
9    |     |      |
10    |     |      expected one of `extern` or `fn`
11    |     help: `async` must come before `unsafe`: `async unsafe`
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: expected one of `extern` or `fn`, found keyword `async`
18   --> $DIR/no-unsafe-async.rs:11:8
19    |
20 LL | unsafe async fn f() {}
21    | -------^^^^^
22    | |      |
23    | |      expected one of `extern` or `fn`
24    | help: `async` must come before `unsafe`: `async unsafe`
25    |
26    = note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
27
28 error: aborting due to 2 previous errors
29