]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/empty-mod-private.rs
Auto merge of #107054 - petrochenkov:effvisdoc3, r=GuillaumeGomez
[rust.git] / tests / rustdoc / empty-mod-private.rs
1 // compile-flags: --document-private-items
2
3 // @has 'empty_mod_private/index.html' '//a[@href="foo/index.html"]' 'foo'
4 // @hasraw 'empty_mod_private/sidebar-items.js' 'foo'
5 // @matches 'empty_mod_private/foo/index.html' '//h1' 'Module empty_mod_private::foo'
6 mod foo {}
7
8 // @has 'empty_mod_private/index.html' '//a[@href="bar/index.html"]' 'bar'
9 // @hasraw 'empty_mod_private/sidebar-items.js' 'bar'
10 // @matches 'empty_mod_private/bar/index.html' '//h1' 'Module empty_mod_private::bar'
11 mod bar {
12     // @has 'empty_mod_private/bar/index.html' '//a[@href="baz/index.html"]' 'baz'
13     // @hasraw 'empty_mod_private/bar/sidebar-items.js' 'baz'
14     // @matches 'empty_mod_private/bar/baz/index.html' '//h1' 'Module empty_mod_private::bar::baz'
15     mod baz {}
16 }