]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/empty-mod-private.rs
Auto merge of #68661 - nnethercote:rm-unused-read_uleb128-param, r=Mark-Simulacrum
[rust.git] / src / test / 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 // @has '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 // @has '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     // @has '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 }