]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-const-async.stderr
Add more tests for async/await
[rust.git] / src / test / ui / async-await / no-const-async.stderr
1 error: expected identifier, found reserved keyword `async`
2   --> $DIR/no-const-async.rs:7:11
3    |
4 LL | pub const async fn x() {}
5    |           ^^^^^ expected identifier, found reserved keyword
6 help: you can escape reserved keywords to use them as identifiers
7    |
8 LL | pub const r#async fn x() {}
9    |           ^^^^^^^
10
11 error: expected `:`, found keyword `fn`
12   --> $DIR/no-const-async.rs:7:17
13    |
14 LL | pub const async fn x() {}
15    |                 ^^ expected `:`
16
17 error: aborting due to 2 previous errors
18