1error[E0603]: module `baz` is private 2 --> $DIR/privacy1.rs:132:18 3 | 4LL | use bar::baz::{foo, bar}; 5 | ^^^ private module 6 | 7note: the module `baz` is defined here 8 --> $DIR/privacy1.rs:50:5 9 | 10LL | mod baz { 11 | ^^^^^^^ 12 13error[E0603]: module `baz` is private 14 --> $DIR/privacy1.rs:132:18 15 | 16LL | use bar::baz::{foo, bar}; 17 | ^^^ private module 18 | 19note: the module `baz` is defined here 20 --> $DIR/privacy1.rs:50:5 21 | 22LL | mod baz { 23 | ^^^^^^^ 24 25error[E0603]: module `baz` is private 26 --> $DIR/privacy1.rs:141:18 27 | 28LL | use bar::baz; 29 | ^^^ private module 30 | 31note: the module `baz` is defined here 32 --> $DIR/privacy1.rs:50:5 33 | 34LL | mod baz { 35 | ^^^^^^^ 36 37error[E0603]: module `i` is private 38 --> $DIR/privacy1.rs:165:20 39 | 40LL | use self::foo::i::A; 41 | ^ private module 42 | 43note: the module `i` is defined here 44 --> $DIR/privacy1.rs:170:9 45 | 46LL | mod i { 47 | ^^^^^ 48 49error[E0603]: module `baz` is private 50 --> $DIR/privacy1.rs:104:16 51 | 52LL | ::bar::baz::A::foo(); 53 | ^^^ private module 54 | 55note: the module `baz` is defined here 56 --> $DIR/privacy1.rs:50:5 57 | 58LL | mod baz { 59 | ^^^^^^^ 60 61error[E0603]: module `baz` is private 62 --> $DIR/privacy1.rs:105:16 63 | 64LL | ::bar::baz::A::bar(); 65 | ^^^ private module 66 | 67note: the module `baz` is defined here 68 --> $DIR/privacy1.rs:50:5 69 | 70LL | mod baz { 71 | ^^^^^^^ 72 73error[E0603]: module `baz` is private 74 --> $DIR/privacy1.rs:107:16 75 | 76LL | ::bar::baz::A.foo2(); 77 | ^^^ private module 78 | 79note: the module `baz` is defined here 80 --> $DIR/privacy1.rs:50:5 81 | 82LL | mod baz { 83 | ^^^^^^^ 84 85error[E0603]: module `baz` is private 86 --> $DIR/privacy1.rs:108:16 87 | 88LL | ::bar::baz::A.bar2(); 89 | ^^^ private module 90 | 91note: the module `baz` is defined here 92 --> $DIR/privacy1.rs:50:5 93 | 94LL | mod baz { 95 | ^^^^^^^ 96 97error[E0603]: trait `B` is private 98 --> $DIR/privacy1.rs:112:16 99 | 100LL | ::bar::B::foo(); 101 | ^ private trait 102 | 103note: the trait `B` is defined here 104 --> $DIR/privacy1.rs:40:5 105 | 106LL | trait B { 107 | ^^^^^^^ 108 109error[E0603]: function `epriv` is private 110 --> $DIR/privacy1.rs:118:20 111 | 112LL | ::bar::epriv(); 113 | ^^^^^ private function 114 | 115note: the function `epriv` is defined here 116 --> $DIR/privacy1.rs:65:9 117 | 118LL | fn epriv(); 119 | ^^^^^^^^^^^ 120 121error[E0603]: module `baz` is private 122 --> $DIR/privacy1.rs:127:16 123 | 124LL | ::bar::baz::foo(); 125 | ^^^ private module 126 | 127note: the module `baz` is defined here 128 --> $DIR/privacy1.rs:50:5 129 | 130LL | mod baz { 131 | ^^^^^^^ 132 133error[E0603]: module `baz` is private 134 --> $DIR/privacy1.rs:128:16 135 | 136LL | ::bar::baz::bar(); 137 | ^^^ private module 138 | 139note: the module `baz` is defined here 140 --> $DIR/privacy1.rs:50:5 141 | 142LL | mod baz { 143 | ^^^^^^^ 144 145error[E0603]: trait `B` is private 146 --> $DIR/privacy1.rs:157:17 147 | 148LL | impl ::bar::B for f32 { fn foo() -> f32 { 1.0 } } 149 | ^ private trait 150 | 151note: the trait `B` is defined here 152 --> $DIR/privacy1.rs:40:5 153 | 154LL | trait B { 155 | ^^^^^^^ 156 157error[E0624]: associated function `bar` is private 158 --> $DIR/privacy1.rs:77:23 159 | 160LL | fn bar() {} 161 | -------- private associated function defined here 162... 163LL | self::baz::A::bar(); 164 | ^^^ private associated function 165 166error[E0624]: associated function `bar` is private 167 --> $DIR/privacy1.rs:95:13 168 | 169LL | fn bar() {} 170 | -------- private associated function defined here 171... 172LL | bar::A::bar(); 173 | ^^^ private associated function 174 175error[E0624]: associated function `bar` is private 176 --> $DIR/privacy1.rs:102:19 177 | 178LL | fn bar() {} 179 | -------- private associated function defined here 180... 181LL | ::bar::A::bar(); 182 | ^^^ private associated function 183 184error[E0624]: associated function `bar` is private 185 --> $DIR/privacy1.rs:105:24 186 | 187LL | fn bar() {} 188 | -------- private associated function defined here 189... 190LL | ::bar::baz::A::bar(); 191 | ^^^ private associated function 192 193error[E0624]: associated function `bar2` is private 194 --> $DIR/privacy1.rs:108:23 195 | 196LL | fn bar2(&self) {} 197 | -------------- private associated function defined here 198... 199LL | ::bar::baz::A.bar2(); 200 | ^^^^ private associated function 201 202error: aborting due to 18 previous errors 203 204Some errors have detailed explanations: E0603, E0624. 205For more information about an error, try `rustc --explain E0603`. 206