summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/namespaces.rs
blob: ad828e5ee3e25cfaad5cc7cc1b1df48c25b911c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// issue #34843: rustdoc prioritises documenting reexports from the type namespace

mod inner {
    pub mod sync {
        pub struct SomeStruct;
    }

    pub fn sync() {}
}

// @has namespaces/sync/index.html
// @has namespaces/fn.sync.html
// @has namespaces/index.html '//a/@href' 'sync/index.html'
// @has - '//a/@href' 'fn.sync.html'
#[doc(inline)]
pub use inner::sync;