summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/local-reexport-doc.rs
blob: 1c8468008dd0afd0eb64d80e32174a1c16c1a93c (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="rustdoc-toggle top-doc"]/*[@class="docblock"]' \
// 'outer module inner module'

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

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