1 2 3 4 5 6 7 8 9 10 11 12 13 14
use structified_enum::structify; #[cfg(any(test, not(test)))] #[structify] #[cfg(any(test, not(test)))] #[derive(PartialEq, Eq, Debug)] #[cfg(any(test, not(test)))] enum Foo { #[cfg(any(test, not(test)))] A, B, } fn main() {}