@@ -43,7 +43,10 @@ error[E0446]: private type `types::Priv` in public interface
43
43
--> $DIR/private-in-public-warn.rs:26:9
44
44
|
45
45
LL | struct Priv;
46
- | ----------- `types::Priv` declared as private
46
+ | -----------
47
+ | |
48
+ | `types::Priv` declared as private
49
+ | help: consider adding `pub` in front of it
47
50
...
48
51
LL | type Alias = Priv;
49
52
| ^^^^^^^^^^ can't leak private type
@@ -97,7 +100,10 @@ error[E0446]: private type `types::Priv` in public interface
97
100
--> $DIR/private-in-public-warn.rs:41:9
98
101
|
99
102
LL | struct Priv;
100
- | ----------- `types::Priv` declared as private
103
+ | -----------
104
+ | |
105
+ | `types::Priv` declared as private
106
+ | help: consider adding `pub` in front of it
101
107
...
102
108
LL | type Alias = Priv;
103
109
| ^^^^^^^^^^ can't leak private type
@@ -232,7 +238,10 @@ error[E0446]: private type `impls::Priv` in public interface
232
238
--> $DIR/private-in-public-warn.rs:132:9
233
239
|
234
240
LL | struct Priv;
235
- | ----------- `impls::Priv` declared as private
241
+ | -----------
242
+ | |
243
+ | `impls::Priv` declared as private
244
+ | help: consider adding `pub` in front of it
236
245
...
237
246
LL | type Alias = Priv;
238
247
| ^^^^^^^^^^ can't leak private type
@@ -250,7 +259,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
250
259
--> $DIR/private-in-public-warn.rs:207:9
251
260
|
252
261
LL | struct Priv;
253
- | ----------- `aliases_pub::Priv` declared as private
262
+ | -----------
263
+ | |
264
+ | `aliases_pub::Priv` declared as private
265
+ | help: consider adding `pub` in front of it
254
266
...
255
267
LL | type Check = Priv;
256
268
| ^^^^^^^^^^ can't leak private type
@@ -259,7 +271,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
259
271
--> $DIR/private-in-public-warn.rs:210:9
260
272
|
261
273
LL | struct Priv;
262
- | ----------- `aliases_pub::Priv` declared as private
274
+ | -----------
275
+ | |
276
+ | `aliases_pub::Priv` declared as private
277
+ | help: consider adding `pub` in front of it
263
278
...
264
279
LL | type Check = Priv;
265
280
| ^^^^^^^^^^ can't leak private type
@@ -268,7 +283,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
268
283
--> $DIR/private-in-public-warn.rs:213:9
269
284
|
270
285
LL | struct Priv;
271
- | ----------- `aliases_pub::Priv` declared as private
286
+ | -----------
287
+ | |
288
+ | `aliases_pub::Priv` declared as private
289
+ | help: consider adding `pub` in front of it
272
290
...
273
291
LL | type Check = Priv;
274
292
| ^^^^^^^^^^ can't leak private type
@@ -277,7 +295,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
277
295
--> $DIR/private-in-public-warn.rs:216:9
278
296
|
279
297
LL | struct Priv;
280
- | ----------- `aliases_pub::Priv` declared as private
298
+ | -----------
299
+ | |
300
+ | `aliases_pub::Priv` declared as private
301
+ | help: consider adding `pub` in front of it
281
302
...
282
303
LL | type Check = Priv;
283
304
| ^^^^^^^^^^ can't leak private type
0 commit comments