Skip to content

Attribute macros must be placed before derive attributes. #566

Closed
@ehuss

Description

@ehuss

I can't find this anywhere in the reference.

#[derive(Debug)]
#[my_awesome_macro] // This is an error.
struct S;

Currently unstable, see: rust-lang/rust#81119

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions