1 error[E0603]: module `baz` is private
2 --> $DIR/privacy1.rs:128:18
4 LL | use bar::baz::{foo, bar};
7 error[E0603]: module `baz` is private
8 --> $DIR/privacy1.rs:136:18
13 error[E0603]: module `i` is private
14 --> $DIR/privacy1.rs:160:20
16 LL | use self::foo::i::A; //~ ERROR: module `i` is private
19 error[E0603]: module `baz` is private
20 --> $DIR/privacy1.rs:100:16
22 LL | ::bar::baz::A::foo(); //~ ERROR: module `baz` is private
25 error[E0603]: module `baz` is private
26 --> $DIR/privacy1.rs:101:16
28 LL | ::bar::baz::A::bar(); //~ ERROR: module `baz` is private
31 error[E0603]: module `baz` is private
32 --> $DIR/privacy1.rs:103:16
34 LL | ::bar::baz::A.foo2(); //~ ERROR: module `baz` is private
37 error[E0603]: module `baz` is private
38 --> $DIR/privacy1.rs:104:16
40 LL | ::bar::baz::A.bar2(); //~ ERROR: module `baz` is private
43 error[E0603]: trait `B` is private
44 --> $DIR/privacy1.rs:108:16
46 LL | ::bar::B::foo(); //~ ERROR: trait `B` is private
49 error[E0603]: function `epriv` is private
50 --> $DIR/privacy1.rs:114:20
52 LL | ::bar::epriv(); //~ ERROR: function `epriv` is private
55 error[E0603]: module `baz` is private
56 --> $DIR/privacy1.rs:123:16
58 LL | ::bar::baz::foo(); //~ ERROR: module `baz` is private
61 error[E0603]: module `baz` is private
62 --> $DIR/privacy1.rs:124:16
64 LL | ::bar::baz::bar(); //~ ERROR: module `baz` is private
67 error[E0603]: trait `B` is private
68 --> $DIR/privacy1.rs:152:17
70 LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } }
73 error[E0624]: method `bar` is private
74 --> $DIR/privacy1.rs:73:9
76 LL | self::baz::A::bar(); //~ ERROR: method `bar` is private
79 error[E0624]: method `bar` is private
80 --> $DIR/privacy1.rs:91:5
82 LL | bar::A::bar(); //~ ERROR: method `bar` is private
85 error[E0624]: method `bar` is private
86 --> $DIR/privacy1.rs:98:9
88 LL | ::bar::A::bar(); //~ ERROR: method `bar` is private
91 error[E0624]: method `bar` is private
92 --> $DIR/privacy1.rs:101:9
94 LL | ::bar::baz::A::bar(); //~ ERROR: module `baz` is private
97 error[E0624]: method `bar2` is private
98 --> $DIR/privacy1.rs:104:23
100 LL | ::bar::baz::A.bar2(); //~ ERROR: module `baz` is private
103 error: aborting due to 17 previous errors
105 Some errors occurred: E0603, E0624.
106 For more information about an error, try `rustc --explain E0603`.