]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | error: functions cannot be both `const` and `async` |
ba9703b0 | 2 | --> $DIR/no-const-async.rs:4:5 |
dc9dc135 XL |
3 | | |
4 | LL | pub const async fn x() {} | |
ba9703b0 | 5 | | ----^^^^^-^^^^^---------- |
74b04a01 XL |
6 | | | | |
7 | | | `async` because of this | |
8 | | `const` because of this | |
dc9dc135 | 9 | |
353b0b11 | 10 | error: aborting due to previous error |
dc9dc135 | 11 |