summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/local-reexport-doc.rs
blob: 5dc857773a393ebf1fb883b674a628132269cb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This test ensures that the reexports of local items also get the doc from
// the reexport.

#![crate_name = "foo"]

// @has 'foo/fn.g.html'
// @has - '//*[@class="toggle top-doc"]/*[@class="docblock"]' \
// 'outer module inner module'

mod inner_mod {
    /// inner module
    pub fn g() {}
}

/// outer module
pub use inner_mod::g;