summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/enums/variant_struct.rs
blob: fcd92887c0bfbcbc8eba9af7ba22a1271598995d (plain)
1
2
3
4
5
6
7
8
9
10
11
// @has variant_struct.json "$.index[*][?(@.name=='EnumStruct')].visibility" \"public\"
// @has - "$.index[*][?(@.name=='EnumStruct')].kind" \"enum\"
pub enum EnumStruct {
    // @has - "$.index[*][?(@.name=='VariantS')].inner.variant_kind" \"struct\"
    // @has - "$.index[*][?(@.name=='x')].kind" \"struct_field\"
    // @has - "$.index[*][?(@.name=='y')].kind" \"struct_field\"
    VariantS {
        x: u32,
        y: String,
    },
}