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

error[E0365]: `S1` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:9:13
   |
LL |     pub use ::S1;
   |             ^^^^ re-export of crate public `S1`
   |
   = note: consider declaring type or module `S1` with `pub`

error[E0365]: `E1` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:10:13
   |
LL |     pub use ::E1;
   |             ^^^^ re-export of crate public `E1`
   |
   = note: consider declaring type or module `E1` with `pub`

error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:11:13
   |
LL |     pub use ::E1::V;
   |             ^^^^^^^
   |
note: consider marking `V` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:11:13
   |
LL |     pub use ::E1::V;
   |             ^^^^^^^

error[E0364]: `f2` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:23:13
   |
LL |     pub use ::f2;
   |             ^^^^
   |
note: consider marking `f2` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:23:13
   |
LL |     pub use ::f2;
   |             ^^^^

error[E0365]: `S2` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:24:13
   |
LL |     pub use ::S2;
   |             ^^^^ re-export of crate public `S2`
   |
   = note: consider declaring type or module `S2` with `pub`

error[E0365]: `E2` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:25:13
   |
LL |     pub use ::E2;
   |             ^^^^ re-export of crate public `E2`
   |
   = note: consider declaring type or module `E2` with `pub`

error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:26:13
   |
LL |     pub use ::E2::V;
   |             ^^^^^^^
   |
note: consider marking `V` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:26:13
   |
LL |     pub use ::E2::V;
   |             ^^^^^^^

error[E0364]: `f3` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:39:9
   |
LL | pub use m3::f3;
   |         ^^^^^^
   |
note: consider marking `f3` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:39:9
   |
LL | pub use m3::f3;
   |         ^^^^^^

error[E0365]: `S3` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:40:9
   |
LL | pub use m3::S3;
   |         ^^^^^^ re-export of crate public `S3`
   |
   = note: consider declaring type or module `S3` with `pub`

error[E0365]: `E3` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:41:9
   |
LL | pub use m3::E3;
   |         ^^^^^^ re-export of crate public `E3`
   |
   = note: consider declaring type or module `E3` with `pub`

error[E0364]: `V` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:42:9
   |
LL | pub use m3::E3::V;
   |         ^^^^^^^^^
   |
note: consider marking `V` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:42:9
   |
LL | pub use m3::E3::V;
   |         ^^^^^^^^^

error[E0364]: `f4` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:45:9
   |
LL | pub use ::f4 as f5;
   |         ^^^^^^^^^^
   |
note: consider marking `f4` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:45:9
   |
LL | pub use ::f4 as f5;
   |         ^^^^^^^^^^

error[E0364]: `f6` is private, and cannot be re-exported
  --> $DIR/crate-private-reexport.rs:53:13
   |
LL |     pub use self::m::f6;
   |             ^^^^^^^^^^^
   |
note: consider marking `f6` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:53:13
   |
LL |     pub use self::m::f6;
   |             ^^^^^^^^^^^

error[E0364]: `f7` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:54:13
   |
LL |     pub use self::m::f7;
   |             ^^^^^^^^^^^
   |
note: consider marking `f7` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:54:13
   |
LL |     pub use self::m::f7;
   |             ^^^^^^^^^^^

error[E0364]: `f8` is private, and cannot be re-exported
  --> $DIR/crate-private-reexport.rs:55:13
   |
LL |     pub use self::m::f8;
   |             ^^^^^^^^^^^
   |
note: consider marking `f8` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:55:13
   |
LL |     pub use self::m::f8;
   |             ^^^^^^^^^^^

error[E0364]: `f7` is only public within the crate, and cannot be re-exported outside
  --> $DIR/crate-private-reexport.rs:58:9
   |
LL | pub use m10::m::f7;
   |         ^^^^^^^^^^
   |
note: consider marking `f7` as `pub` in the imported module
  --> $DIR/crate-private-reexport.rs:58:9
   |
LL | pub use m10::m::f7;
   |         ^^^^^^^^^^

error[E0603]: function `f6` is private
  --> $DIR/crate-private-reexport.rs:57:17
   |
LL | pub use m10::m::f6;
   |                 ^^ private function
   |
note: the function `f6` is defined here
  --> $DIR/crate-private-reexport.rs:49:9
   |
LL |         pub(super) fn f6() {}
   |         ^^^^^^^^^^^^^^^^^^

error[E0603]: function `f8` is private
  --> $DIR/crate-private-reexport.rs:59:17
   |
LL | pub use m10::m::f8;
   |                 ^^ private function
   |
note: the function `f8` is defined here
  --> $DIR/crate-private-reexport.rs:51:9
   |
LL |         pub(in crate::m10) fn f8() {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0603]: function `f9` is private
  --> $DIR/crate-private-reexport.rs:64:14
   |
LL | pub use m11::f9;
   |              ^^ private function
   |
note: the function `f9` is defined here
  --> $DIR/crate-private-reexport.rs:62:5
   |
LL |     pub(self) fn f9() {}
   |     ^^^^^^^^^^^^^^^^^

error: aborting due to 20 previous errors

Some errors have detailed explanations: E0364, E0365, E0603.
For more information about an error, try `rustc --explain E0364`.