summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/structs/plain_doc_hidden.rs
blob: 7800b55a481ac485c8ed778ae576587ac2dabbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub struct Demo {
    pub x: i32,
    #[doc(hidden)]
    pub y: i32,
}

// @set x = "$.index[*][?(@.name=='x')].id"
// @!has "$.index[*][?(@.name=='y')].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