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
@@ -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_path.rs:17:39
|
17 | struct T2(#[serde(default = "d")] u8, u8, u8);
| ^^
error: struct or field must have #[serde(default)] because previous field 0 have #[serde(default)]
--> tests/ui/default-attribute/tuple_struct_path.rs:17:43
|
17 | struct T2(#[serde(default = "d")] u8, u8, u8);
| ^^