Skip to content

Attribute macros must be placed before derive attributes. #566

Closed

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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