about summary refs log tree commit diff
path: root/src/test/ui/async-await/no-const-async.stderr
blob: f6ae0f1447ced96d832f6b2fb5717b86754a0207 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: functions cannot be both `const` and `async`
  --> $DIR/no-const-async.rs:4:1
   |
LL | pub const async fn x() {}
   | ^^^^-----^-----^^^^^^^^^^
   |     |     |
   |     |     `async` because of this
   |     `const` because of this

error: aborting due to previous error