Skip to content

Attribute macros can't be applied to statements  #41475

Closed
@abonander

Description

@abonander

If my_attr is an attribute proc macro which otherwise resolves in a given context,
#[my_attr] let foo: i32; will fail to resolve.

I'm on mobile because my home internet is down so I can't really provide a better example. Will update later if necessary.

cc @jseyfried

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-decl-macros-2-0Area: Declarative macros 2.0 (#39412)C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions