Skip to content

Trailing commas are not permitted for method calls #16705

Description

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

http://is.gd/8OsLJv

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-grammarArea: The grammar of RustA-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions