fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
438 B14 linesraw
1error: expected one of `extern` or `fn`, found keyword `async`
2  --> $DIR/no-unsafe-async.rs:7:12
3   |
4LL |     unsafe async fn g() {}
5   |            ^^^^^ expected one of `extern` or `fn` here
6
7error: expected one of `extern`, `fn`, or `{`, found keyword `async`
8  --> $DIR/no-unsafe-async.rs:11:8
9   |
10LL | unsafe async fn f() {}
11   |        ^^^^^ expected one of `extern`, `fn`, or `{` here
12
13error: aborting due to 2 previous errors
14