diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/serde_repr/tests/ui/multiple_others.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/serde_repr/tests/ui/multiple_others.rs b/vendor/serde_repr/tests/ui/multiple_others.rs new file mode 100644 index 000000000..fdb552b10 --- /dev/null +++ b/vendor/serde_repr/tests/ui/multiple_others.rs @@ -0,0 +1,12 @@ +use serde_repr::Deserialize_repr; + +#[derive(Deserialize_repr)] +#[repr(u8)] +enum MultipleOthers { + #[serde(other)] + A, + #[serde(other)] + B, +} + +fn main() {} |