mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-24 12:45:02 +00:00
Allow #[serde(default)] on tuple structs
This commit is contained in:
1 parent
4aa54222f4
commit
5c33931422
13 files changed
+230
-60
No files matched your search
@@ -0,0 +1,11 @@
|
||||
error: struct or field must have #[serde(default)] because previous field 0 have #[serde(default)]
|
||||
--> tests/ui/default-attribute/tuple_struct.rs:17:33
|
||||
|
|
||||
17 | struct T2(#[serde(default)] u8, u8, u8);
|
||||
| ^^
|
||||
|
||||
error: struct or field must have #[serde(default)] because previous field 0 have #[serde(default)]
|
||||
--> tests/ui/default-attribute/tuple_struct.rs:17:37
|
||||
|
|
||||
17 | struct T2(#[serde(default)] u8, u8, u8);
|
||||
| ^^
|
||||
Reference in new issue
Block a user