fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
367 B14 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
7error: expected `:`, found keyword `fn`
8  --> $DIR/no-const-async.rs:5:17
9   |
10LL | pub const async fn x() {}
11   |                 ^^ expected `:`
12
13error: aborting due to 2 previous errors
14