summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/stripped_modules.rs
blob: 91f9f02ad7b47342aae502b827ba7ca0b5bf2686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![no_core]
#![feature(no_core)]

// @!has stripped_modules.json "$.index[*][?(@.name=='no_pub_inner')]"
mod no_pub_inner {
    fn priv_inner() {}
}

// @!has - "$.index[*][?(@.name=='pub_inner_unreachable')]"
mod pub_inner_unreachable {
    // @!has - "$.index[*][?(@.name=='pub_inner_1')]"
    pub fn pub_inner_1() {}
}

// @has - "$.index[*][?(@.name=='pub_inner_reachable')]"
mod pub_inner_reachable {
    // @has - "$.index[*][?(@.name=='pub_inner_2')]"
    pub fn pub_inner_2() {}
}

pub use pub_inner_reachable::pub_inner_2;