summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/structs/tuple_pub_priv.rs
blob: 9d5a1d1c8be7fccbc45268aa864a36069a76a885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pub struct Demo(
    i32,
    /// field
    pub i32,
    #[doc(hidden)] i32,
);

// @set field = "$.index[*][?(@.docs=='field')].id"

// @is    "$.index[*][?(@.name=='Demo')].inner.kind.tuple[0]" null
// @is    "$.index[*][?(@.name=='Demo')].inner.kind.tuple[1]" $field
// @is    "$.index[*][?(@.name=='Demo')].inner.kind.tuple[2]" null
// @count "$.index[*][?(@.name=='Demo')].inner.kind.tuple[*]" 3