-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
fn f() { }
fn main() { ret ::f(); }
Is incorrectly rejected:
z.rs:2:16:2:18: error: expected ';' or '}' after expression but found ::
z.rs:2 fn main() { ret ::f(); }
^~
fwiw, if I put parens around the call, it's accepted. But the pretty-printer takes out the parens, since they're obviously unnecessary ;)
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.