rust/tests/ui/async-await/no-const-async.stderr

12 lines
281 B
Plaintext
Raw Normal View History

error: functions cannot be both `const` and `async`
--> $DIR/no-const-async.rs:4:5
2019-06-24 19:48:21 -05:00
|
LL | pub const async fn x() {}
| ----^^^^^-^^^^^----------
| | |
| | `async` because of this
| `const` because of this
2019-06-24 19:48:21 -05:00
error: aborting due to previous error
2019-06-24 19:48:21 -05:00