Skip to content

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

Closed

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 {}

Activity

  1. added a commit that references this issue on Nov 4, 2016
    ecd79a1
  2. added a commit that references this issue on Nov 4, 2016
    4917f52
  3. added a commit that references this issue on Nov 5, 2016
    14e8f9f
  4. added a commit that references this issue on Nov 5, 2016
    9847bd3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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