Recover from incorrectly ordered/duplicated function keywords
This commit is contained in:
parent
54e57e66ff
commit
be0b42fabe
14 changed files with 136 additions and 11 deletions
|
@ -3,3 +3,4 @@
|
|||
|
||||
pub async const fn x() {}
|
||||
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `const`
|
||||
//~| ERROR functions cannot be both `const` and `async`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue