You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a proc-macro crate mycrate, that defines a #[proc_macro_attribute] function mymacro.
There is no way to use it (that I could find) at crate root level
And I get the following error: error: an inner attribute is not permitted in this context
As I understand this is because I use it after the extern crate, but it won't resolve before it.
(I know this feature is not stable yet, just want to know if there is a plan/workaround for this)
I have a proc-macro crate
mycrate
, that defines a#[proc_macro_attribute]
functionmymacro
.There is no way to use it (that I could find) at crate root level
I tried this code:
And I get the following error:
error: an inner attribute is not permitted in this context
As I understand this is because I use it after the
extern crate
, but it won't resolve before it.(I know this feature is not stable yet, just want to know if there is a plan/workaround for this)
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: