Skip to content

Trailing commas are not permitted for method calls #16705

Closed
@brendanzab

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

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