We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 {}
The text was updated successfully, but these errors were encountered:
Add error when proc_macro_derive is used not on functions
ecd79a1
Fixes rust-lang#37590
Rollup merge of rust-lang#37596 - est31:master, r=alexcrichton
4917f52
Add error when proc_macro_derive is used not on functions Fixes rust-lang#37590
14e8f9f
9847bd3
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: