@@ -55,13 +55,15 @@ 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
- | -----------
59
- | |
60
- | `types::Priv` declared as private
61
- | help: consider adding `pub` in front of it
58
+ | ----------- `types::Priv` declared as private
62
59
...
63
60
LL | type Alias = Priv;
64
61
| ^^^^^^^^^^ can't leak private type
62
+ |
63
+ help: consider adding `pub` in front of it
64
+ |
65
+ LL | pub;
66
+ | ~~~
65
67
66
68
error: type `types::Priv` is more private than the item `Tr::f1`
67
69
--> $DIR/private-in-public-warn.rs:23:9
@@ -127,13 +129,15 @@ error[E0446]: private type `types::Priv` in public interface
127
129
--> $DIR/private-in-public-warn.rs:32:9
128
130
|
129
131
LL | struct Priv;
130
- | -----------
131
- | |
132
- | `types::Priv` declared as private
133
- | help: consider adding `pub` in front of it
132
+ | ----------- `types::Priv` declared as private
134
133
...
135
134
LL | type Alias = Priv;
136
135
| ^^^^^^^^^^ can't leak private type
136
+ |
137
+ help: consider adding `pub` in front of it
138
+ |
139
+ LL | pub;
140
+ | ~~~
137
141
138
142
error: trait `traits::PrivTr` is more private than the item `traits::Alias`
139
143
--> $DIR/private-in-public-warn.rs:41:5
@@ -312,13 +316,15 @@ error[E0446]: private type `impls::Priv` in public interface
312
316
--> $DIR/private-in-public-warn.rs:109:9
313
317
|
314
318
LL | struct Priv;
315
- | -----------
316
- | |
317
- | `impls::Priv` declared as private
318
- | help: consider adding `pub` in front of it
319
+ | ----------- `impls::Priv` declared as private
319
320
...
320
321
LL | type Alias = Priv;
321
322
| ^^^^^^^^^^ can't leak private type
323
+ |
324
+ help: consider adding `pub` in front of it
325
+ |
326
+ LL | pub;
327
+ | ~~~
322
328
323
329
error: type `aliases_pub::Priv` is more private than the item `aliases_pub::<impl Pub2>::f`
324
330
--> $DIR/private-in-public-warn.rs:180:9
@@ -336,49 +342,57 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
336
342
--> $DIR/private-in-public-warn.rs:183:9
337
343
|
338
344
LL | struct Priv;
339
- | -----------
340
- | |
341
- | `aliases_pub::Priv` declared as private
342
- | help: consider adding `pub` in front of it
345
+ | ----------- `aliases_pub::Priv` declared as private
343
346
...
344
347
LL | type Check = Priv;
345
348
| ^^^^^^^^^^ can't leak private type
349
+ |
350
+ help: consider adding `pub` in front of it
351
+ |
352
+ LL | pub;
353
+ | ~~~
346
354
347
355
error[E0446]: private type `aliases_pub::Priv` in public interface
348
356
--> $DIR/private-in-public-warn.rs:186:9
349
357
|
350
358
LL | struct Priv;
351
- | -----------
352
- | |
353
- | `aliases_pub::Priv` declared as private
354
- | help: consider adding `pub` in front of it
359
+ | ----------- `aliases_pub::Priv` declared as private
355
360
...
356
361
LL | type Check = Priv;
357
362
| ^^^^^^^^^^ can't leak private type
363
+ |
364
+ help: consider adding `pub` in front of it
365
+ |
366
+ LL | pub;
367
+ | ~~~
358
368
359
369
error[E0446]: private type `aliases_pub::Priv` in public interface
360
370
--> $DIR/private-in-public-warn.rs:189:9
361
371
|
362
372
LL | struct Priv;
363
- | -----------
364
- | |
365
- | `aliases_pub::Priv` declared as private
366
- | help: consider adding `pub` in front of it
373
+ | ----------- `aliases_pub::Priv` declared as private
367
374
...
368
375
LL | type Check = Priv;
369
376
| ^^^^^^^^^^ can't leak private type
377
+ |
378
+ help: consider adding `pub` in front of it
379
+ |
380
+ LL | pub;
381
+ | ~~~
370
382
371
383
error[E0446]: private type `aliases_pub::Priv` in public interface
372
384
--> $DIR/private-in-public-warn.rs:192:9
373
385
|
374
386
LL | struct Priv;
375
- | -----------
376
- | |
377
- | `aliases_pub::Priv` declared as private
378
- | help: consider adding `pub` in front of it
387
+ | ----------- `aliases_pub::Priv` declared as private
379
388
...
380
389
LL | type Check = Priv;
381
390
| ^^^^^^^^^^ can't leak private type
391
+ |
392
+ help: consider adding `pub` in front of it
393
+ |
394
+ LL | pub;
395
+ | ~~~
382
396
383
397
error: trait `PrivTr1` is more private than the item `aliases_priv::Tr1`
384
398
--> $DIR/private-in-public-warn.rs:222:5
0 commit comments