diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-19 10:32:33 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-19 10:45:07 +0800 |
| commit | 320ea9a3a418daa17174dc78f1262509b96b13b9 (patch) | |
| tree | 3b055fb4dcb0b069ddf779f9a2c42c75de0813a2 /mingling_pathf/test/src/test_files/test_grouped_derive.rs | |
| parent | ddf9e740c09edd02882cb325e367f70cf16b645f (diff) | |
fix!: rename `Groupped` to `Grouped` across the codebase
Diffstat (limited to 'mingling_pathf/test/src/test_files/test_grouped_derive.rs')
| -rw-r--r-- | mingling_pathf/test/src/test_files/test_grouped_derive.rs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/mingling_pathf/test/src/test_files/test_grouped_derive.rs b/mingling_pathf/test/src/test_files/test_grouped_derive.rs new file mode 100644 index 0000000..20055e9 --- /dev/null +++ b/mingling_pathf/test/src/test_files/test_grouped_derive.rs @@ -0,0 +1,43 @@ +#[derive(Grouped)] +struct Derived1 { + value: String, +} + +#[derive(Grouped, Debug, Clone)] +struct Derived2 { + value: i32, +} + +#[derive(GroupedSerialize)] +struct Derived3 { + value: bool, +} + +#[derive(Grouped)] +enum EnumDerived1 { + A, + B, +} + +#[derive(GroupedSerialize)] +enum EnumDerived2 { + X(String), + Y(i32), +} + +pub mod sub { + #[derive(Grouped)] + struct Derived1 { + value: String, + } + + #[derive(GroupedSerialize)] + struct Derived3 { + value: bool, + } + + #[derive(Grouped)] + enum EnumDerived1 { + A, + } +} |
