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
|
|
|
|
2020-09-29 21:13:25 -05:00
|
|
|
error: aborting due to previous error
|
2019-06-24 19:48:21 -05:00
|
|
|
|