Introduce fn@ as a synonym for fn

This commit is contained in:
Brian Anderson 2011-10-14 15:11:30 -07:00
parent 86735c0d7d
commit ac276f7016

View File

@ -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
}