Allow #[serde(default)] on tuple structs

This commit is contained in:
Mingun
2023-07-24 23:13:39 +05:00
parent 4aa54222f4
commit 5c33931422
13 changed files with 230 additions and 60 deletions
@@ -1,4 +1,4 @@
error: #[serde(default = "...")] can only be used on structs with named fields
error: #[serde(default = "...")] can only be used on structs with fields
--> tests/ui/default-attribute/enum_path.rs:4:9
|
4 | #[serde(default = "default_e")]