]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_local/glob-private-document-private-items.rs
Rollup merge of #106144 - tgross35:patch-1, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / inline_local / glob-private-document-private-items.rs
1 // compile-flags: --document-private-items
2
3 #![crate_name = "foo"]
4
5 mod mod1 {
6     mod mod2 {
7         pub struct Mod2Public;
8         struct Mod2Private;
9     }
10     pub use self::mod2::*;
11
12     pub struct Mod1Public;
13     struct Mod1Private;
14 }
15 pub use mod1::*;
16
17 // @has foo/index.html
18 // @hasraw - "mod1"
19 // @hasraw - "Mod1Public"
20 // @!hasraw - "Mod1Private"
21 // @!hasraw - "mod2"
22 // @hasraw - "Mod2Public"
23 // @!hasraw - "Mod2Private"
24 // @has foo/struct.Mod1Public.html
25 // @!has foo/struct.Mod1Private.html
26 // @has foo/struct.Mod2Public.html
27 // @!has foo/struct.Mod2Private.html
28
29 // @has foo/mod1/index.html
30 // @hasraw - "mod2"
31 // @hasraw - "Mod1Public"
32 // @hasraw - "Mod1Private"
33 // @!hasraw - "Mod2Public"
34 // @!hasraw - "Mod2Private"
35 // @has foo/mod1/struct.Mod1Public.html
36 // @has foo/mod1/struct.Mod1Private.html
37 // @!has foo/mod1/struct.Mod2Public.html
38 // @!has foo/mod1/struct.Mod2Private.html
39
40 // @has foo/mod1/mod2/index.html
41 // @hasraw - "Mod2Public"
42 // @hasraw - "Mod2Private"
43 // @has foo/mod1/mod2/struct.Mod2Public.html
44 // @has foo/mod1/mod2/struct.Mod2Private.html
45
46 // @!has foo/mod2/index.html
47 // @!has foo/mod2/struct.Mod2Public.html
48 // @!has foo/mod2/struct.Mod2Private.html