Add tests of #[serde(default)] attribute for units and unions

This commit is contained in:
Mingun committed 2024-07-23 21:00:11 +05:00
1 parent 28a092261b
commit 21c7fd1bd5
8 files changed
+72

No files matched your search

@@ -0,0 +1,5 @@
error: #[serde(default = "...")] can only be used on structs that have fields
--> tests/ui/default-attribute/unit_path.rs:4:9
|
4 | #[serde(default = "default_u")]
| ^^^^^^^^^^^^^^^^^^^^^