Skip to content
New issue

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

The derive macro needs to be re-written #1

Open
Boog900 opened this issue Jul 5, 2023 · 0 comments
Open

The derive macro needs to be re-written #1

Boog900 opened this issue Jul 5, 2023 · 0 comments

Comments

@Boog900
Copy link
Owner

Boog900 commented Jul 5, 2023

because of this the derive macro will not work from within a function

for now to fix this you will need to move the struct definition to outside the function or you could put a module around the struct definitions:

fn foo {
   mod i_64079 {
       // put definitions here
   }
   use i_64079::*;
}
Boog900 added a commit that referenced this issue Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant