Skip to content

Parser accepts bare 'a T in impl header #20616

Closed
@aturon

Description

@aturon

The following is currently accepted:

struct JoinGuard<'a, T>;

impl<'a, T> JoinGuard<'a T> {  // note the lack of comma after the second 'a
    fn foo() {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-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