summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/stripped_modules.rs
blob: d2664b49e9c29209897d6216d3480e2756820684 (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 "$.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;