@@ -55,13 +55,15 @@ error[E0446]: private type `types::Priv` in public interface
5555 --> $DIR/private-in-public-warn.rs:22:9
5656 |
5757LL | 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
6259...
6360LL | type Alias = Priv;
6461 | ^^^^^^^^^^ can't leak private type
62+ |
63+ help: consider adding `pub` in front of it
64+ |
65+ LL | pub;
66+ | ~~~
6567
6668error: type `types::Priv` is more private than the item `Tr::f1`
6769 --> $DIR/private-in-public-warn.rs:23:9
@@ -127,13 +129,15 @@ error[E0446]: private type `types::Priv` in public interface
127129 --> $DIR/private-in-public-warn.rs:32:9
128130 |
129131LL | 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
134133...
135134LL | type Alias = Priv;
136135 | ^^^^^^^^^^ can't leak private type
136+ |
137+ help: consider adding `pub` in front of it
138+ |
139+ LL | pub;
140+ | ~~~
137141
138142error: trait `traits::PrivTr` is more private than the item `traits::Alias`
139143 --> $DIR/private-in-public-warn.rs:41:5
@@ -312,13 +316,15 @@ error[E0446]: private type `impls::Priv` in public interface
312316 --> $DIR/private-in-public-warn.rs:109:9
313317 |
314318LL | 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
319320...
320321LL | type Alias = Priv;
321322 | ^^^^^^^^^^ can't leak private type
323+ |
324+ help: consider adding `pub` in front of it
325+ |
326+ LL | pub;
327+ | ~~~
322328
323329error: type `aliases_pub::Priv` is more private than the item `aliases_pub::<impl Pub2>::f`
324330 --> $DIR/private-in-public-warn.rs:180:9
@@ -336,49 +342,57 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
336342 --> $DIR/private-in-public-warn.rs:183:9
337343 |
338344LL | 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
343346...
344347LL | type Check = Priv;
345348 | ^^^^^^^^^^ can't leak private type
349+ |
350+ help: consider adding `pub` in front of it
351+ |
352+ LL | pub;
353+ | ~~~
346354
347355error[E0446]: private type `aliases_pub::Priv` in public interface
348356 --> $DIR/private-in-public-warn.rs:186:9
349357 |
350358LL | 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
355360...
356361LL | type Check = Priv;
357362 | ^^^^^^^^^^ can't leak private type
363+ |
364+ help: consider adding `pub` in front of it
365+ |
366+ LL | pub;
367+ | ~~~
358368
359369error[E0446]: private type `aliases_pub::Priv` in public interface
360370 --> $DIR/private-in-public-warn.rs:189:9
361371 |
362372LL | 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
367374...
368375LL | type Check = Priv;
369376 | ^^^^^^^^^^ can't leak private type
377+ |
378+ help: consider adding `pub` in front of it
379+ |
380+ LL | pub;
381+ | ~~~
370382
371383error[E0446]: private type `aliases_pub::Priv` in public interface
372384 --> $DIR/private-in-public-warn.rs:192:9
373385 |
374386LL | 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
379388...
380389LL | type Check = Priv;
381390 | ^^^^^^^^^^ can't leak private type
391+ |
392+ help: consider adding `pub` in front of it
393+ |
394+ LL | pub;
395+ | ~~~
382396
383397error: trait `PrivTr1` is more private than the item `aliases_priv::Tr1`
384398 --> $DIR/private-in-public-warn.rs:222:5
0 commit comments