Skip to content

Raw syntax for lifetimes and loop labels #126335

Closed
@traviscross

Description

@traviscross

We don't currently accept:

pub fn label() {
    'r#async: loop {
        break 'r#async;
    }
}

pub fn lifetime<'r#async>() {}

Should we? This has relevance to edition migrations.

See:

Metadata

Metadata

Labels

C-discussionCategory: Discussion or questions that doesn't represent real issues.T-langRelevant to the language team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions