2020-01-30 06:02:06 -06:00
|
|
|
error: functions cannot be both `const` and `async`
|
2020-03-06 12:55:21 -06:00
|
|
|
--> $DIR/no-const-async.rs:4:5
|
2019-06-24 19:48:21 -05:00
|
|
|
|
|
|
|
|
LL | pub const async fn x() {}
|
2020-03-06 12:55:21 -06:00
|
|
|
| ----^^^^^-^^^^^----------
|
2020-01-30 06:02:06 -06:00
|
|
|
| | |
|
|
|
|
| | `async` because of this
|
|
|
|
| `const` because of this
|
2019-06-24 19:48:21 -05:00
|
|
|
|
2022-11-24 10:58:32 -06:00
|
|
|
error: aborting due to previous error
|
2019-06-24 19:48:21 -05:00
|
|
|
|