diff options
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 7a1e61f27ba..f38d0f9cc77 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -2147,6 +2147,9 @@ fn parse_fn_proto(p: parser) -> ast::proto { if p.peek() == token::POUND { p.bump(); ast::proto_bare + } else if p.peek() == token::AT { + p.bump(); + ast::proto_fn } else { ast::proto_fn } |
