]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/empty-mod-private.rs
Auto merge of #55519 - fhartwig:hashmap-index-example, r=Centril
[rust.git] / src / test / rustdoc / empty-mod-private.rs
1 // ignore-tidy-linelength
2 // compile-flags: --document-private-items
3
4 // @has 'empty_mod_private/index.html' '//a[@href="foo/index.html"]' 'foo'
5 // @has 'empty_mod_private/sidebar-items.js' 'foo'
6 // @matches 'empty_mod_private/foo/index.html' '//h1' 'Module empty_mod_private::foo'
7 mod foo {}
8
9 // @has 'empty_mod_private/index.html' '//a[@href="bar/index.html"]' 'bar'
10 // @has 'empty_mod_private/sidebar-items.js' 'bar'
11 // @matches 'empty_mod_private/bar/index.html' '//h1' 'Module empty_mod_private::bar'
12 mod bar {
13     // @has 'empty_mod_private/bar/index.html' '//a[@href="baz/index.html"]' 'baz'
14     // @has 'empty_mod_private/bar/sidebar-items.js' 'baz'
15     // @matches 'empty_mod_private/bar/baz/index.html' '//h1' 'Module empty_mod_private::bar::baz'
16     mod baz {}
17 }