Allow #[serde(default)] on tuple structs

This commit is contained in:
Mingun committed 2023-08-03 22:32:34 +05:00
1 parent 4aa54222f4
commit 5c33931422
13 files changed
+230 -60

No files matched your search

@@ -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")]