mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Introduce fn@ as a synonym for fn
This commit is contained in:
parent
86735c0d7d
commit
ac276f7016
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user