Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser rejects "ret ::f()" #762

Closed
jruderman opened this issue Jul 28, 2011 · 0 comments
Closed

parser rejects "ret ::f()" #762

jruderman opened this issue Jul 28, 2011 · 0 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@jruderman
Copy link
Contributor

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 ;)

@ghost ghost assigned jdm Jul 28, 2011
@jdm jdm closed this as completed in f0e29c9 Jul 28, 2011
@jdm jdm closed this as completed in ed96d10 Jul 28, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Define additional IPPROTO_* constants.

Define additional IPPROTO_* constants, e.g. for DCCP and SCTP. These constants are standard across all system types -- the values are those assigned to the protocol by the IANA:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants