]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/inline_local/glob-private.rs
rustdoc: Fix some local inlining issues
[rust.git] / src / test / rustdoc / inline_local / glob-private.rs
1 // Copyright 2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![crate_name = "foo"]
12
13 mod mod1 {
14     mod mod2 {
15         pub struct Mod2Public;
16         struct Mod2Private;
17     }
18     pub use self::mod2::*;
19
20     pub struct Mod1Public;
21     struct Mod1Private;
22 }
23 pub use mod1::*;
24
25 // @has foo/index.html
26 // @!has - "mod1"
27 // @has - "Mod1Public"
28 // @!has - "Mod1Private"
29 // @!has - "mod2"
30 // @has - "Mod2Public"
31 // @!has - "Mod2Private"
32 // @has foo/struct.Mod1Public.html
33 // @!has foo/struct.Mod1Private.html
34 // @has foo/struct.Mod2Public.html
35 // @!has foo/struct.Mod2Private.html
36
37 // @!has foo/mod1/index.html
38 // @has foo/mod1/struct.Mod1Public.html
39 // @!has foo/mod1/struct.Mod1Private.html
40 // @!has foo/mod1/struct.Mod2Public.html
41 // @!has foo/mod1/struct.Mod2Private.html
42
43 // @!has foo/mod1/mod2/index.html
44 // @has foo/mod1/mod2/struct.Mod2Public.html
45 // @!has foo/mod1/mod2/struct.Mod2Private.html
46
47 // @!has foo/mod2/index.html
48 // @!has foo/mod2/struct.Mod2Public.html
49 // @!has foo/mod2/struct.Mod2Private.html