Skip to content

macro!() + foo fails to parse #20093

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

Closed
ftxqxd opened this issue Dec 21, 2014 · 0 comments · Fixed by #20099
Closed

macro!() + foo fails to parse #20093

ftxqxd opened this issue Dec 21, 2014 · 0 comments · Fixed by #20099

Comments

@ftxqxd
Copy link
Contributor

ftxqxd commented Dec 21, 2014

fn main() {
    macro!() + foo; // error: expected one of `.`, `;`, or `}`, found `+`
}

I suspect this may be because the parser calls parse_dot_or_call_expr_with after parsing a macro invocation instead of calling a method that accepts more operators, such as the second half of parse_assign_expr.

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

Successfully merging a pull request may close this issue.

1 participant