diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/serde_repr/tests/ui/non_unit_variant.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/serde_repr/tests/ui/non_unit_variant.rs b/vendor/serde_repr/tests/ui/non_unit_variant.rs new file mode 100644 index 000000000..9cdc80d0a --- /dev/null +++ b/vendor/serde_repr/tests/ui/non_unit_variant.rs @@ -0,0 +1,12 @@ +use serde_repr::Serialize_repr; + +#[derive(Serialize_repr)] +#[repr(u8)] +enum SmallPrime { + Two(u8), + Three(u8), + Five(u8), + Seven(u8), +} + +fn main() {} |