Skip to content

Keywords in format_args!() named arguments are not accepted #21350

@ChayimFriedman2

Description

@ChayimFriedman2

Code:

fn main() {
    format_args!("{type}", type=1);
}

r-a shows multiple errors, including syntax errors. rustc accepts this code.

Metadata

Metadata

Labels

A-macromacro expansionC-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions