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 strum::EnumString;#[derive(Debug,Clone,Copy,EnumString)]enumNested{EnumA(EnumA),EnumB(EnumB),}#[derive(Debug,Clone,Copy,EnumString)]enumEnumA{Variant1,Variant2,}#[derive(Debug,Clone,Copy,EnumString)]enumEnumB{Variant3,Variant4,}fnmain(){}
Error:
error[E0277]: the trait bound `EnumA: Default` is not satisfied
--> src/main.rs:3:30
|
3 | #[derive(Debug, Clone, Copy, EnumString)]
| ^^^^^^^^^^ the trait `Default` is not implemented for `EnumA`
|
= note: this error originates in the derive macro `EnumString` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `EnumB: Default` is not satisfied
--> src/main.rs:3:30
|
3 | #[derive(Debug, Clone, Copy, EnumString)]
| ^^^^^^^^^^ the trait `Default` is not implemented for `EnumB`
|
= note: this error originates in the derive macro `EnumString` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `testing` (bin "testing") due to 2 previous errors
The text was updated successfully, but these errors were encountered:
Code required to reproduce:
Error:
The text was updated successfully, but these errors were encountered: