]>
Commit | Line | Data |
---|---|---|
e74abb32 | 1 | error: expected one of `extern` or `fn`, found keyword `async` |
dc9dc135 XL |
2 | --> $DIR/no-unsafe-async.rs:7:12 |
3 | | | |
74b04a01 XL |
4 | LL | impl S { |
5 | | - while parsing this item list starting here | |
6 | LL | #[cfg(FALSE)] | |
dc9dc135 | 7 | LL | unsafe async fn g() {} |
94222f64 XL |
8 | | -------^^^^^ |
9 | | | | | |
10 | | | expected one of `extern` or `fn` | |
11 | | help: `async` must come before `unsafe`: `async unsafe` | |
74b04a01 XL |
12 | LL | } |
13 | | - the item list ends here | |
94222f64 XL |
14 | | |
15 | = note: keyword order for functions declaration is `default`, `pub`, `const`, `async`, `unsafe`, `extern` | |
dc9dc135 | 16 | |
74b04a01 | 17 | error: expected one of `extern` or `fn`, found keyword `async` |
dc9dc135 XL |
18 | --> $DIR/no-unsafe-async.rs:11:8 |
19 | | | |
20 | LL | unsafe async fn f() {} | |
94222f64 XL |
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 `default`, `pub`, `const`, `async`, `unsafe`, `extern` | |
dc9dc135 XL |
27 | |
28 | error: aborting due to 2 previous errors | |
29 |