]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/auxiliary/static_priv_by_default.rs
Rollup merge of #102977 - lukas-code:is-sorted-hrtb, r=m-ou-se
[rust.git] / src / test / ui / static / auxiliary / static_priv_by_default.rs
1 #![crate_type = "lib"]
2
3 static private: isize = 0;
4 pub static public: isize = 0;
5
6 pub struct A(());
7
8 impl A {
9     fn foo() {}
10 }
11
12 mod foo {
13     pub static a: isize = 0;
14     pub fn b() {}
15     pub struct c;
16     pub enum d {}
17     pub type e = isize;
18
19     pub struct A(());
20
21     impl A {
22         fn foo() {}
23     }
24
25     // these are public so the parent can re-export them.
26     pub static reexported_a: isize = 0;
27     pub fn reexported_b() {}
28     pub struct reexported_c;
29     pub enum reexported_d {}
30     pub type reexported_e = isize;
31 }
32
33 pub mod bar {
34     pub use foo::reexported_a as e;
35     pub use foo::reexported_b as f;
36     pub use foo::reexported_c as g;
37     pub use foo::reexported_d as h;
38     pub use foo::reexported_e as i;
39 }
40
41 pub static a: isize = 0;
42 pub fn b() {}
43 pub struct c;
44 pub enum d {}
45 pub type e = isize;
46
47 static j: isize = 0;
48 fn k() {}
49 struct l;
50 enum m {}
51 type n = isize;