diff options
Diffstat (limited to 'tests/rustdoc-json/enums/variant_struct.rs')
-rw-r--r-- | tests/rustdoc-json/enums/variant_struct.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc-json/enums/variant_struct.rs b/tests/rustdoc-json/enums/variant_struct.rs new file mode 100644 index 000000000..bc870c502 --- /dev/null +++ b/tests/rustdoc-json/enums/variant_struct.rs @@ -0,0 +1,10 @@ +// @is "$.index[*][?(@.name=='EnumStruct')].visibility" \"public\" +// @is "$.index[*][?(@.name=='EnumStruct')].kind" \"enum\" +pub enum EnumStruct { + // @is "$.index[*][?(@.name=='x')].kind" \"struct_field\" + // @set x = "$.index[*][?(@.name=='x')].id" + // @is "$.index[*][?(@.name=='y')].kind" \"struct_field\" + // @set y = "$.index[*][?(@.name=='y')].id" + // @ismany "$.index[*][?(@.name=='VariantS')].inner.kind.struct.fields[*]" $x $y + VariantS { x: u32, y: String }, +} |