2019-10-22 18:46:19 +00:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 19:38:26 +00:00
|
|
|
--> $DIR/no-unsafe-async.rs:7:12
|
|
|
|
|
|
|
|
|
LL | unsafe async fn g() {}
|
2021-08-02 09:10:19 +00:00
|
|
|
| -------^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected one of `extern` or `fn`
|
|
|
|
| help: `async` must come before `unsafe`: `async unsafe`
|
|
|
|
|
|
2022-05-02 09:14:43 +00:00
|
|
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
|
2019-06-29 19:38:26 +00:00
|
|
|
|
2020-01-30 12:02:06 +00:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 19:38:26 +00:00
|
|
|
--> $DIR/no-unsafe-async.rs:11:8
|
|
|
|
|
|
|
|
|
LL | unsafe async fn f() {}
|
2021-08-02 09:10:19 +00:00
|
|
|
| -------^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected one of `extern` or `fn`
|
|
|
|
| help: `async` must come before `unsafe`: `async unsafe`
|
|
|
|
|
|
2022-05-02 09:14:43 +00:00
|
|
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
|
2019-06-29 19:38:26 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|