File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/test/rustdoc-json/enums Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1+ // @has variant_struct.json "$.index[*][?(@.name=='EnumStruct')].visibility" \"public\"
2+ // @has - "$.index[*][?(@.name=='EnumStruct')].kind" \"enum\"
3+ pub enum EnumStruct {
4+ // @has - "$.index[*][?(@.name=='VariantS')].inner.variant_kind" \"struct\"
5+ // @has - "$.index[*][?(@.name=='x')]"
6+ // @has - "$.index[*][?(@.name=='y')]"
7+ VariantS {
8+ x : u32 ,
9+ y : String ,
10+ } ,
11+ }
Original file line number Diff line number Diff line change 1+ // @has variant_tuple_struct.json "$.index[*][?(@.name=='EnumTupleStruct')].visibility" \"public\"
2+ // @has - "$.index[*][?(@.name=='EnumTupleStruct')].kind" \"enum\"
3+ pub enum EnumTupleStruct {
4+ // @has - "$.index[*][?(@.name=='VariantA')].inner.variant_kind" \"tuple\"
5+ VariantA ( u32 , String ) ,
6+ }
You can’t perform that action at this time.
0 commit comments