Skip to content

Parser accepts bare 'a T in impl header #20616

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() {}
}

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