Skip to content

proc_macro_derive can be used outside of proc-macro crates #37590

Closed
@est31

Description

@est31

This code compiles right now, even though its a) attached to a struct and not a function, and b) used outside a proc-macro crate.

#![feature(proc_macro)]

#[proc_macro_derive(Whatever)]
struct Foo {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions