Skip to content

Can't call methods on a macro invocation #15671

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
kmcallister opened this issue Jul 14, 2014 · 1 comment
Closed

Can't call methods on a macro invocation #15671

kmcallister opened this issue Jul 14, 2014 · 1 comment

Comments

@kmcallister
Copy link
Contributor

vec!().is_empty() fails to parse with "unexpected token: .". An extra set of parentheses around vec!() is required.

@alexcrichton
Copy link
Member

Closing as a dupe of #5941. Currently it's a limitation that if a macro starts a line that it expands to a statement instead of an expression, and you've also discovered the current workaround.

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