fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
548 B19 linesraw
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   |            ^^^^^ expected one of `extern` or `fn`
9LL | }
10   | - the item list ends here
11
12error: expected one of `extern` or `fn`, found keyword `async`
13  --> $DIR/no-unsafe-async.rs:11:8
14   |
15LL | unsafe async fn f() {}
16   |        ^^^^^ expected one of `extern` or `fn`
17
18error: aborting due to 2 previous errors
19