@@ -55,7 +55,10 @@ error[E0446]: private type `types::Priv` in public interface
5555 --> $DIR/private-in-public-warn.rs:22:9
5656 |
5757LL | 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
5962...
6063LL | type Alias = Priv;
6164 | ^^^^^^^^^^ can't leak private type
@@ -124,7 +127,10 @@ error[E0446]: private type `types::Priv` in public interface
124127 --> $DIR/private-in-public-warn.rs:32:9
125128 |
126129LL | 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
128134...
129135LL | type Alias = Priv;
130136 | ^^^^^^^^^^ can't leak private type
@@ -306,7 +312,10 @@ error[E0446]: private type `impls::Priv` in public interface
306312 --> $DIR/private-in-public-warn.rs:109:9
307313 |
308314LL | 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
310319...
311320LL | type Alias = Priv;
312321 | ^^^^^^^^^^ can't leak private type
@@ -327,7 +336,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
327336 --> $DIR/private-in-public-warn.rs:183:9
328337 |
329338LL | 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
331343...
332344LL | type Check = Priv;
333345 | ^^^^^^^^^^ can't leak private type
@@ -336,7 +348,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
336348 --> $DIR/private-in-public-warn.rs:186:9
337349 |
338350LL | 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
340355...
341356LL | type Check = Priv;
342357 | ^^^^^^^^^^ can't leak private type
@@ -345,7 +360,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
345360 --> $DIR/private-in-public-warn.rs:189:9
346361 |
347362LL | 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
349367...
350368LL | type Check = Priv;
351369 | ^^^^^^^^^^ can't leak private type
@@ -354,7 +372,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
354372 --> $DIR/private-in-public-warn.rs:192:9
355373 |
356374LL | 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
358379...
359380LL | type Check = Priv;
360381 | ^^^^^^^^^^ can't leak private type
0 commit comments