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

Trailing commas are not permitted for method calls #16705

Closed
brendanzab opened this issue Aug 23, 2014 · 4 comments
Closed

Trailing commas are not permitted for method calls #16705

brendanzab opened this issue Aug 23, 2014 · 4 comments
Labels
A-grammar Area: The grammar of Rust A-parser Area: The parsing of Rust source code to an AST

Comments

@brendanzab
Copy link
Member

fn main() {
    x.foo(1, 2,);
}
<anon>:2:16: 2:17 error: unexpected token: `)`
<anon>:2     x.foo(1, 2,);
                        ^

http://is.gd/8OsLJv

@japaric
Copy link
Member

japaric commented Aug 23, 2014

Duplicate of #14240?

@ghost
Copy link

ghost commented Aug 23, 2014

I think this is being addressed in #16646.

@huonw huonw closed this as completed Aug 23, 2014
@huonw
Copy link
Member

huonw commented Aug 23, 2014

Closed as dupe; thanks @japaric.

@brendanzab
Copy link
Member Author

Ooh nice! Sorry!

Just contributing to our closed issue stats! ^_^

bors added a commit to rust-lang-ci/rust that referenced this issue Mar 3, 2024
…Veykril

Add public function for resolving callable AST exprs to their HIR equivalents

(the PR is motivated by an outside use of the `ra_ap_hir` crate that would benefit from being able to walk a `hir::Function`'s AST, resolving callable exprs within to their HIR equivalents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust A-parser Area: The parsing of Rust source code to an AST
Projects
None yet
Development

No branches or pull requests

3 participants