summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/structs/plain_pub_priv.rs
blob: 9b771224d97417c15d7a8e20993ce3bde70de2fc (plain)
1
2
3
4
5
6
7
8
9
pub struct Demo {
    pub x: i32,
    y: i32,
}

// @set x = "$.index[*][?(@.name=='x')].id"
// @is "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields[0]" $x
// @count "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields[*]" 1
// @is "$.index[*][?(@.name=='Demo')].inner.kind.plain.fields_stripped" true