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
$ -> cargo check
Checking example-openapi-union v0.1.0 (/_____/poem/examples/openapi/union)
error[E0401]: can't use generic parameters from outer item
--> openapi/union/src/main.rs:18:9
|
17 | enum MyObj<T: Type + ParseFromJSON + ToJSON> {
| - type parameter from outer item
18 | A(A<T>),
| ^ use of generic parameter from outer item
For more information about this error, try `rustc --explain E0401`.
error: could not compile `example-openapi-union` (bin "example-openapi-union") due to 1 previous error
Expected Behavior
Check this example master...vpikulik:union_fail_example
It compiled in previous versions
Actual Behavior
Steps to Reproduce the Problem
cd poem/examples/openapi/union
Specifications
The reason of the problem
cargo expand generates next code:
I think crate
static_assertions
should be replaced.The text was updated successfully, but these errors were encountered: