parser: fuse free fn parsing together.

This commit is contained in:
Mazdak Farrokhzad 2020-01-30 13:02:06 +01:00
parent 36a17e4067
commit a833be2162
28 changed files with 181 additions and 185 deletions

View file

@ -2,5 +2,4 @@
// compile-flags: --crate-type lib
pub const async fn x() {}
//~^ ERROR expected identifier, found keyword `async`
//~^^ expected `:`, found keyword `fn`
//~^ ERROR functions cannot be both `const` and `async`