Skip to content

Nightly regression: empty lifetime list in for<lifetime-list> doesn't parse anymore #37733

Closed
@petrochenkov

Description

@petrochenkov

Code:

type A = for<> fn(); // error: trailing attribute after lifetime parameters

fn main() {}

Compiles on 1.13-stable,beta, fails on 1.14-nightly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions