fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
494 B18 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
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL | pub const r#async fn x() {}
9   |           ^^^^^^^
10
11error: expected `:`, found keyword `fn`
12  --> $DIR/no-const-async.rs:5:17
13   |
14LL | pub const async fn x() {}
15   |                 ^^ expected `:`
16
17error: aborting due to 2 previous errors
18