fork/rust

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

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

1.40.0
499 B19 linesraw
1error: expected identifier, found keyword `async`
2  --> $DIR/no-const-async.rs:5:11
3   |
4LL | pub const async fn x() {}
5   |           ^^^^^ expected identifier, found keyword
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL | pub const r#async fn x() {}
10   |           ^^^^^^^
11
12error: expected `:`, found keyword `fn`
13  --> $DIR/no-const-async.rs:5:17
14   |
15LL | pub const async fn x() {}
16   |                 ^^ expected `:`
17
18error: aborting due to 2 previous errors
19