Skip to content

quote_item! should parse leading attributes #14857

Closed
@huonw

Description

@huonw

e.g. the following fails to parse (decl is None at runtime: a parse error).

let decl = quote_item!(cx, #[deriving(Eq)] struct CustomStruct;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions