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