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