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

anonymous obj expression-statement is rejected #761

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

anonymous obj expression-statement is rejected #761

jruderman opened this issue Jul 28, 2011 · 0 comments

Comments

@jruderman
Copy link
Contributor

fn main() { (obj () {  }); }

pretty-prints as

fn main() { obj () {  } }

which is rejected with the message "expecting ident", pointing at the "()" after "obj".

I'm guessing this is a parser bug rather than a pretty-printer bug, since rust is mostly an expression language.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
…lexcrichton

Add additional interface flags (IFF_)

Adds the three missing IFF_ constants (IFF_LOWER_UP, IFF_DORMANT, and IFF_ECHO) per nix-rust/nix#764
pdietl pushed a commit to pdietl/rust that referenced this issue Apr 23, 2020
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants