mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-24 20:55:01 +00:00
Add tests of #[serde(default)] attribute for units and unions
This commit is contained in:
1 parent
28a092261b
commit
21c7fd1bd5
8 files changed
+72
No files matched your search
@@ -0,0 +1,7 @@
|
||||
use serde_derive::Deserialize;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(default = "default_u")]
|
||||
struct Unit;
|
||||
|
||||
fn main() {}
|
||||
Reference in new issue
Block a user