]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/namespaces.rs
Rollup merge of #106753 - compiler-errors:rpitit-not-suggestable, r=spastorino
[rust.git] / tests / rustdoc / namespaces.rs
1 // issue #34843: rustdoc prioritises documenting reexports from the type namespace
2
3 mod inner {
4     pub mod sync {
5         pub struct SomeStruct;
6     }
7
8     pub fn sync() {}
9 }
10
11 // @has namespaces/sync/index.html
12 // @has namespaces/fn.sync.html
13 // @has namespaces/index.html '//a/@href' 'sync/index.html'
14 // @has - '//a/@href' 'fn.sync.html'
15 #[doc(inline)]
16 pub use inner::sync;