parse: refactor fun ret ty & param ty

This commit is contained in:
Mazdak Farrokhzad 2019-12-01 16:00:08 +01:00
parent 404013e015
commit 34d91709b6
12 changed files with 77 additions and 107 deletions

View file

@ -1381,7 +1381,7 @@ impl<'a> Parser<'a> {
args
}
};
let output = self.parse_ret_ty(true)?;
let output = self.parse_ret_ty(true, true)?;
Ok(P(FnDecl {
inputs: inputs_captures,