mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-11-04 08:31:07 +00:00
Untagged and internally tagged enums
This commit is contained in:
16 files changed
+2020
-531
No files matched your search
@@ -0,0 +1,10 @@
|
||||
#[macro_use]
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)] //~ ERROR: custom derive attribute panicked
|
||||
#[serde(tag = "type")] //~^ HELP: #[serde(tag = "...")] cannot be used with tuple variants
|
||||
enum E {
|
||||
Tuple(u8, u8),
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in new issue
Block a user