about summary refs log tree commit diff
path: root/tests/rustdoc/empty-mod-public.rs
blob: b5a63525524cef4533868e48b1ecf7cda7462e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ has 'empty_mod_public/index.html' '//a[@href="foo/index.html"]' 'foo'
//@ hasraw 'empty_mod_public/sidebar-items.js' 'foo'
//@ matches 'empty_mod_public/foo/index.html' '//h1' 'Module empty_mod_public::foo'
pub mod foo {}

//@ has 'empty_mod_public/index.html' '//a[@href="bar/index.html"]' 'bar'
//@ hasraw 'empty_mod_public/sidebar-items.js' 'bar'
//@ matches 'empty_mod_public/bar/index.html' '//h1' 'Module empty_mod_public::bar'
pub mod bar {
    //@ has 'empty_mod_public/bar/index.html' '//a[@href="baz/index.html"]' 'baz'
    //@ hasraw 'empty_mod_public/bar/sidebar-items.js' 'baz'
    //@ matches 'empty_mod_public/bar/baz/index.html' '//h1' 'Module empty_mod_public::bar::baz'
    pub mod baz {}
}