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 couldn't make JsonSchema derive works with a macro that creates structs and a enum containing these structures. I keep getting an error cannot find value gen in this scope.
I made a gist showing a minimal example where the problem occurs.
If the JsonSchema derive is commented on macro's call, the code works just fine.
Error
error[E0425]: cannot find value `gen` in this scope
--> src/main.rs:27:24
|
27 | $inner($inner)
| ^^^^^^ not found in this scope
...
36 | / _macro!(
37 | | #[derive(Serialize, Deserialize, Debug, JsonSchema)]
38 | | Test {
39 | | #[derive(Serialize, Deserialize, Debug, JsonSchema)]
... |
42 | |
43 | | );
| |__- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
I couldn't make
JsonSchema
derive works with a macro that createsstructs
and aenum
containing thesestructure
s. I keep getting an errorcannot find value
genin this scope
.I made a gist showing a minimal example where the problem occurs.
If the
JsonSchema
derive is commented on macro's call, the code works just fine.Error
The text was updated successfully, but these errors were encountered: