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
use schemars::JsonSchema;
#[derive(JsonSchema)]
pub enum MyEnum {}
error[E0282]: type annotations needed
--> src/main.rs:3:10
|
698 | #[derive(JsonSchema)]
| ^^^^^^^^^^ cannot infer type
|
= note: this error originates in the derive macro `JsonSchema` (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
kmdreko
changed the title
0.18.8 regression - "type annotations needed" on variantless enum
0.8.18 regression - "type annotations needed" on variantless enum
May 6, 2024
This code fails with version 0.8.18 of schemars:
Discovered from scale-info library: https://github.com/paritytech/scale-info/blob/3082edc2ae96de53c1ba104b8423451a9a485d1b/src/form.rs#L64-L67
The text was updated successfully, but these errors were encountered: