Compile error deriving FromForm on a struct made by a macro #2388
Unanswered
MassiminoilTrace
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I post this here instead of the issues section because i'm not sure if it's my mistake, if it happens because of my little knowledge of fromform inner algorithm or if it is a rocket limitation.
Should i move it to the issues or keep it here?
I tried deriving things different than FromForm and they all work ( I tried deriving Clone, serde's Serialize and Deserialize).
I reduced it to a very simple example that still fails to compile.
Reproducing
Create a macro that takes a struct and simply declares each field, a sort of "wrapper" like in this website. My previous macro did other stuff like generating getter and setters from this and some other stuff, but I removed that part to make an barebone example.
Then I simply use the example macro while deriving FromForm
Error message
Compile error saying:
Beta Was this translation helpful? Give feedback.
All reactions