|  | 
|  | 1 | +error[E0364]: `f1` is only public within the crate, and cannot be re-exported outside | 
|  | 2 | +  --> $DIR/crate-private-reexport.rs:8:13 | 
|  | 3 | +   | | 
|  | 4 | +LL |     pub use ::f1; | 
|  | 5 | +   |             ^^^^ | 
|  | 6 | +   | | 
|  | 7 | +note: consider marking `f1` as `pub` in the imported module | 
|  | 8 | +  --> $DIR/crate-private-reexport.rs:8:13 | 
|  | 9 | +   | | 
|  | 10 | +LL |     pub use ::f1; | 
|  | 11 | +   |             ^^^^ | 
|  | 12 | + | 
|  | 13 | +error[E0365]: `S1` is only public within the crate, and cannot be re-exported outside | 
|  | 14 | +  --> $DIR/crate-private-reexport.rs:9:13 | 
|  | 15 | +   | | 
|  | 16 | +LL |     pub use ::S1; | 
|  | 17 | +   |             ^^^^ re-export of crate public `S1` | 
|  | 18 | +   | | 
|  | 19 | +   = note: consider declaring type or module `S1` with `pub` | 
|  | 20 | + | 
|  | 21 | +error[E0365]: `E1` is only public within the crate, and cannot be re-exported outside | 
|  | 22 | +  --> $DIR/crate-private-reexport.rs:10:13 | 
|  | 23 | +   | | 
|  | 24 | +LL |     pub use ::E1; | 
|  | 25 | +   |             ^^^^ re-export of crate public `E1` | 
|  | 26 | +   | | 
|  | 27 | +   = note: consider declaring type or module `E1` with `pub` | 
|  | 28 | + | 
|  | 29 | +error[E0364]: `V` is only public within the crate, and cannot be re-exported outside | 
|  | 30 | +  --> $DIR/crate-private-reexport.rs:11:13 | 
|  | 31 | +   | | 
|  | 32 | +LL |     pub use ::E1::V; | 
|  | 33 | +   |             ^^^^^^^ | 
|  | 34 | +   | | 
|  | 35 | +note: consider marking `V` as `pub` in the imported module | 
|  | 36 | +  --> $DIR/crate-private-reexport.rs:11:13 | 
|  | 37 | +   | | 
|  | 38 | +LL |     pub use ::E1::V; | 
|  | 39 | +   |             ^^^^^^^ | 
|  | 40 | + | 
|  | 41 | +error[E0364]: `f2` is only public within the crate, and cannot be re-exported outside | 
|  | 42 | +  --> $DIR/crate-private-reexport.rs:23:13 | 
|  | 43 | +   | | 
|  | 44 | +LL |     pub use ::f2; | 
|  | 45 | +   |             ^^^^ | 
|  | 46 | +   | | 
|  | 47 | +note: consider marking `f2` as `pub` in the imported module | 
|  | 48 | +  --> $DIR/crate-private-reexport.rs:23:13 | 
|  | 49 | +   | | 
|  | 50 | +LL |     pub use ::f2; | 
|  | 51 | +   |             ^^^^ | 
|  | 52 | + | 
|  | 53 | +error[E0365]: `S2` is only public within the crate, and cannot be re-exported outside | 
|  | 54 | +  --> $DIR/crate-private-reexport.rs:24:13 | 
|  | 55 | +   | | 
|  | 56 | +LL |     pub use ::S2; | 
|  | 57 | +   |             ^^^^ re-export of crate public `S2` | 
|  | 58 | +   | | 
|  | 59 | +   = note: consider declaring type or module `S2` with `pub` | 
|  | 60 | + | 
|  | 61 | +error[E0365]: `E2` is only public within the crate, and cannot be re-exported outside | 
|  | 62 | +  --> $DIR/crate-private-reexport.rs:25:13 | 
|  | 63 | +   | | 
|  | 64 | +LL |     pub use ::E2; | 
|  | 65 | +   |             ^^^^ re-export of crate public `E2` | 
|  | 66 | +   | | 
|  | 67 | +   = note: consider declaring type or module `E2` with `pub` | 
|  | 68 | + | 
|  | 69 | +error[E0364]: `V` is only public within the crate, and cannot be re-exported outside | 
|  | 70 | +  --> $DIR/crate-private-reexport.rs:26:13 | 
|  | 71 | +   | | 
|  | 72 | +LL |     pub use ::E2::V; | 
|  | 73 | +   |             ^^^^^^^ | 
|  | 74 | +   | | 
|  | 75 | +note: consider marking `V` as `pub` in the imported module | 
|  | 76 | +  --> $DIR/crate-private-reexport.rs:26:13 | 
|  | 77 | +   | | 
|  | 78 | +LL |     pub use ::E2::V; | 
|  | 79 | +   |             ^^^^^^^ | 
|  | 80 | + | 
|  | 81 | +error[E0364]: `f3` is only public within the crate, and cannot be re-exported outside | 
|  | 82 | +  --> $DIR/crate-private-reexport.rs:39:9 | 
|  | 83 | +   | | 
|  | 84 | +LL | pub use m3::f3; | 
|  | 85 | +   |         ^^^^^^ | 
|  | 86 | +   | | 
|  | 87 | +note: consider marking `f3` as `pub` in the imported module | 
|  | 88 | +  --> $DIR/crate-private-reexport.rs:39:9 | 
|  | 89 | +   | | 
|  | 90 | +LL | pub use m3::f3; | 
|  | 91 | +   |         ^^^^^^ | 
|  | 92 | + | 
|  | 93 | +error[E0365]: `S3` is only public within the crate, and cannot be re-exported outside | 
|  | 94 | +  --> $DIR/crate-private-reexport.rs:40:9 | 
|  | 95 | +   | | 
|  | 96 | +LL | pub use m3::S3; | 
|  | 97 | +   |         ^^^^^^ re-export of crate public `S3` | 
|  | 98 | +   | | 
|  | 99 | +   = note: consider declaring type or module `S3` with `pub` | 
|  | 100 | + | 
|  | 101 | +error[E0365]: `E3` is only public within the crate, and cannot be re-exported outside | 
|  | 102 | +  --> $DIR/crate-private-reexport.rs:41:9 | 
|  | 103 | +   | | 
|  | 104 | +LL | pub use m3::E3; | 
|  | 105 | +   |         ^^^^^^ re-export of crate public `E3` | 
|  | 106 | +   | | 
|  | 107 | +   = note: consider declaring type or module `E3` with `pub` | 
|  | 108 | + | 
|  | 109 | +error[E0364]: `V` is only public within the crate, and cannot be re-exported outside | 
|  | 110 | +  --> $DIR/crate-private-reexport.rs:42:9 | 
|  | 111 | +   | | 
|  | 112 | +LL | pub use m3::E3::V; | 
|  | 113 | +   |         ^^^^^^^^^ | 
|  | 114 | +   | | 
|  | 115 | +note: consider marking `V` as `pub` in the imported module | 
|  | 116 | +  --> $DIR/crate-private-reexport.rs:42:9 | 
|  | 117 | +   | | 
|  | 118 | +LL | pub use m3::E3::V; | 
|  | 119 | +   |         ^^^^^^^^^ | 
|  | 120 | + | 
|  | 121 | +error[E0364]: `f4` is only public within the crate, and cannot be re-exported outside | 
|  | 122 | +  --> $DIR/crate-private-reexport.rs:45:9 | 
|  | 123 | +   | | 
|  | 124 | +LL | pub use ::f4 as f5; | 
|  | 125 | +   |         ^^^^^^^^^^ | 
|  | 126 | +   | | 
|  | 127 | +note: consider marking `f4` as `pub` in the imported module | 
|  | 128 | +  --> $DIR/crate-private-reexport.rs:45:9 | 
|  | 129 | +   | | 
|  | 130 | +LL | pub use ::f4 as f5; | 
|  | 131 | +   |         ^^^^^^^^^^ | 
|  | 132 | + | 
|  | 133 | +error[E0364]: `f6` is private, and cannot be re-exported | 
|  | 134 | +  --> $DIR/crate-private-reexport.rs:53:13 | 
|  | 135 | +   | | 
|  | 136 | +LL |     pub use self::m::f6; | 
|  | 137 | +   |             ^^^^^^^^^^^ | 
|  | 138 | +   | | 
|  | 139 | +note: consider marking `f6` as `pub` in the imported module | 
|  | 140 | +  --> $DIR/crate-private-reexport.rs:53:13 | 
|  | 141 | +   | | 
|  | 142 | +LL |     pub use self::m::f6; | 
|  | 143 | +   |             ^^^^^^^^^^^ | 
|  | 144 | + | 
|  | 145 | +error[E0364]: `f7` is only public within the crate, and cannot be re-exported outside | 
|  | 146 | +  --> $DIR/crate-private-reexport.rs:54:13 | 
|  | 147 | +   | | 
|  | 148 | +LL |     pub use self::m::f7; | 
|  | 149 | +   |             ^^^^^^^^^^^ | 
|  | 150 | +   | | 
|  | 151 | +note: consider marking `f7` as `pub` in the imported module | 
|  | 152 | +  --> $DIR/crate-private-reexport.rs:54:13 | 
|  | 153 | +   | | 
|  | 154 | +LL |     pub use self::m::f7; | 
|  | 155 | +   |             ^^^^^^^^^^^ | 
|  | 156 | + | 
|  | 157 | +error[E0364]: `f8` is private, and cannot be re-exported | 
|  | 158 | +  --> $DIR/crate-private-reexport.rs:55:13 | 
|  | 159 | +   | | 
|  | 160 | +LL |     pub use self::m::f8; | 
|  | 161 | +   |             ^^^^^^^^^^^ | 
|  | 162 | +   | | 
|  | 163 | +note: consider marking `f8` as `pub` in the imported module | 
|  | 164 | +  --> $DIR/crate-private-reexport.rs:55:13 | 
|  | 165 | +   | | 
|  | 166 | +LL |     pub use self::m::f8; | 
|  | 167 | +   |             ^^^^^^^^^^^ | 
|  | 168 | + | 
|  | 169 | +error[E0364]: `f7` is only public within the crate, and cannot be re-exported outside | 
|  | 170 | +  --> $DIR/crate-private-reexport.rs:58:9 | 
|  | 171 | +   | | 
|  | 172 | +LL | pub use m10::m::f7; | 
|  | 173 | +   |         ^^^^^^^^^^ | 
|  | 174 | +   | | 
|  | 175 | +note: consider marking `f7` as `pub` in the imported module | 
|  | 176 | +  --> $DIR/crate-private-reexport.rs:58:9 | 
|  | 177 | +   | | 
|  | 178 | +LL | pub use m10::m::f7; | 
|  | 179 | +   |         ^^^^^^^^^^ | 
|  | 180 | + | 
|  | 181 | +error[E0603]: function `f6` is private | 
|  | 182 | +  --> $DIR/crate-private-reexport.rs:57:17 | 
|  | 183 | +   | | 
|  | 184 | +LL | pub use m10::m::f6; | 
|  | 185 | +   |                 ^^ private function | 
|  | 186 | +   | | 
|  | 187 | +note: the function `f6` is defined here | 
|  | 188 | +  --> $DIR/crate-private-reexport.rs:49:9 | 
|  | 189 | +   | | 
|  | 190 | +LL |         pub(super) fn f6() {} | 
|  | 191 | +   |         ^^^^^^^^^^^^^^^^^^ | 
|  | 192 | + | 
|  | 193 | +error[E0603]: function `f8` is private | 
|  | 194 | +  --> $DIR/crate-private-reexport.rs:59:17 | 
|  | 195 | +   | | 
|  | 196 | +LL | pub use m10::m::f8; | 
|  | 197 | +   |                 ^^ private function | 
|  | 198 | +   | | 
|  | 199 | +note: the function `f8` is defined here | 
|  | 200 | +  --> $DIR/crate-private-reexport.rs:51:9 | 
|  | 201 | +   | | 
|  | 202 | +LL |         pub(in crate::m10) fn f8() {} | 
|  | 203 | +   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^ | 
|  | 204 | + | 
|  | 205 | +error[E0603]: function `f9` is private | 
|  | 206 | +  --> $DIR/crate-private-reexport.rs:64:14 | 
|  | 207 | +   | | 
|  | 208 | +LL | pub use m11::f9; | 
|  | 209 | +   |              ^^ private function | 
|  | 210 | +   | | 
|  | 211 | +note: the function `f9` is defined here | 
|  | 212 | +  --> $DIR/crate-private-reexport.rs:62:5 | 
|  | 213 | +   | | 
|  | 214 | +LL |     pub(self) fn f9() {} | 
|  | 215 | +   |     ^^^^^^^^^^^^^^^^^ | 
|  | 216 | + | 
|  | 217 | +error: aborting due to 20 previous errors | 
|  | 218 | + | 
|  | 219 | +Some errors have detailed explanations: E0364, E0365, E0603. | 
|  | 220 | +For more information about an error, try `rustc --explain E0364`. | 
0 commit comments