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
error: The attribute `serde` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642)
--> src/lib.rs:20:1
|
20 | #[serde(untagged)]
| ^^^^^^^^^^^^^^^^^^
When you add #[derive(Serialize, Deserialize)] to the enum, it compiles, but the error message was quite confusing. It sent me on a feature-flag-enabling goose hunt, and it took someone who knew what they were doing (h/t @dtolnay) to set me straight. A better error message would be great!
The text was updated successfully, but these errors were encountered:
The following code doesn't compile on 1.23:
The error message is:
When you add
#[derive(Serialize, Deserialize)]
to the enum, it compiles, but the error message was quite confusing. It sent me on a feature-flag-enabling goose hunt, and it took someone who knew what they were doing (h/t @dtolnay) to set me straight. A better error message would be great!The text was updated successfully, but these errors were encountered: