]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-const-async.stderr
Merge commit '3e4179766bcecd712824da04356621b8df012ea4' into sync-from-clippy
[rust.git] / src / test / ui / async-await / no-const-async.stderr
1 error: functions cannot be both `const` and `async`
2   --> $DIR/no-const-async.rs:4:5
3    |
4 LL | pub const async fn x() {}
5    | ----^^^^^-^^^^^----------
6    |     |     |
7    |     |     `async` because of this
8    |     `const` because of this
9
10 error: aborting due to previous error
11