@@ -55,7 +55,10 @@ error[E0446]: private type `types::Priv` in public interface
55
55
--> $DIR/private-in-public-warn.rs:22:9
56
56
|
57
57
LL | struct Priv;
58
- | ----------- `types::Priv` declared as private
58
+ | -----------
59
+ | |
60
+ | `types::Priv` declared as private
61
+ | help: consider adding `pub` in front of it
59
62
...
60
63
LL | type Alias = Priv;
61
64
| ^^^^^^^^^^ can't leak private type
@@ -124,7 +127,10 @@ error[E0446]: private type `types::Priv` in public interface
124
127
--> $DIR/private-in-public-warn.rs:32:9
125
128
|
126
129
LL | struct Priv;
127
- | ----------- `types::Priv` declared as private
130
+ | -----------
131
+ | |
132
+ | `types::Priv` declared as private
133
+ | help: consider adding `pub` in front of it
128
134
...
129
135
LL | type Alias = Priv;
130
136
| ^^^^^^^^^^ can't leak private type
@@ -306,7 +312,10 @@ error[E0446]: private type `impls::Priv` in public interface
306
312
--> $DIR/private-in-public-warn.rs:109:9
307
313
|
308
314
LL | struct Priv;
309
- | ----------- `impls::Priv` declared as private
315
+ | -----------
316
+ | |
317
+ | `impls::Priv` declared as private
318
+ | help: consider adding `pub` in front of it
310
319
...
311
320
LL | type Alias = Priv;
312
321
| ^^^^^^^^^^ can't leak private type
@@ -327,7 +336,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
327
336
--> $DIR/private-in-public-warn.rs:183:9
328
337
|
329
338
LL | struct Priv;
330
- | ----------- `aliases_pub::Priv` declared as private
339
+ | -----------
340
+ | |
341
+ | `aliases_pub::Priv` declared as private
342
+ | help: consider adding `pub` in front of it
331
343
...
332
344
LL | type Check = Priv;
333
345
| ^^^^^^^^^^ can't leak private type
@@ -336,7 +348,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
336
348
--> $DIR/private-in-public-warn.rs:186:9
337
349
|
338
350
LL | struct Priv;
339
- | ----------- `aliases_pub::Priv` declared as private
351
+ | -----------
352
+ | |
353
+ | `aliases_pub::Priv` declared as private
354
+ | help: consider adding `pub` in front of it
340
355
...
341
356
LL | type Check = Priv;
342
357
| ^^^^^^^^^^ can't leak private type
@@ -345,7 +360,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
345
360
--> $DIR/private-in-public-warn.rs:189:9
346
361
|
347
362
LL | struct Priv;
348
- | ----------- `aliases_pub::Priv` declared as private
363
+ | -----------
364
+ | |
365
+ | `aliases_pub::Priv` declared as private
366
+ | help: consider adding `pub` in front of it
349
367
...
350
368
LL | type Check = Priv;
351
369
| ^^^^^^^^^^ can't leak private type
@@ -354,7 +372,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
354
372
--> $DIR/private-in-public-warn.rs:192:9
355
373
|
356
374
LL | struct Priv;
357
- | ----------- `aliases_pub::Priv` declared as private
375
+ | -----------
376
+ | |
377
+ | `aliases_pub::Priv` declared as private
378
+ | help: consider adding `pub` in front of it
358
379
...
359
380
LL | type Check = Priv;
360
381
| ^^^^^^^^^^ can't leak private type
0 commit comments