2019-10-22 13:46:19 -05:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 14:38:26 -05:00
|
|
|
--> $DIR/no-unsafe-async.rs:7:12
|
|
|
|
|
|
2020-02-22 01:16:39 -06:00
|
|
|
LL | impl S {
|
|
|
|
| - while parsing this item list starting here
|
|
|
|
LL | #[cfg(FALSE)]
|
2019-06-29 14:38:26 -05:00
|
|
|
LL | unsafe async fn g() {}
|
2021-08-02 04:10:19 -05:00
|
|
|
| -------^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected one of `extern` or `fn`
|
|
|
|
| help: `async` must come before `unsafe`: `async unsafe`
|
2020-02-22 01:16:39 -06:00
|
|
|
LL | }
|
|
|
|
| - the item list ends here
|
2021-08-02 04:10:19 -05:00
|
|
|
|
|
2022-05-02 04:14:43 -05:00
|
|
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
|
2019-06-29 14:38:26 -05:00
|
|
|
|
2020-01-30 06:02:06 -06:00
|
|
|
error: expected one of `extern` or `fn`, found keyword `async`
|
2019-06-29 14:38:26 -05:00
|
|
|
--> $DIR/no-unsafe-async.rs:11:8
|
|
|
|
|
|
|
|
|
LL | unsafe async fn f() {}
|
2021-08-02 04:10:19 -05:00
|
|
|
| -------^^^^^
|
|
|
|
| | |
|
|
|
|
| | expected one of `extern` or `fn`
|
|
|
|
| help: `async` must come before `unsafe`: `async unsafe`
|
|
|
|
|
|
2022-05-02 04:14:43 -05:00
|
|
|
= note: keyword order for functions declaration is `pub`, `default`, `const`, `async`, `unsafe`, `extern`
|
2019-06-29 14:38:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|