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