@@ -43,7 +43,10 @@ error[E0446]: private type `types::Priv` in public interface
4343 --> $DIR/private-in-public-warn.rs:26:9
4444 |
4545LL | 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
4750...
4851LL | type Alias = Priv;
4952 | ^^^^^^^^^^ can't leak private type
@@ -97,7 +100,10 @@ error[E0446]: private type `types::Priv` in public interface
97100 --> $DIR/private-in-public-warn.rs:41:9
98101 |
99102LL | 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
101107...
102108LL | type Alias = Priv;
103109 | ^^^^^^^^^^ can't leak private type
@@ -232,7 +238,10 @@ error[E0446]: private type `impls::Priv` in public interface
232238 --> $DIR/private-in-public-warn.rs:132:9
233239 |
234240LL | 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
236245...
237246LL | type Alias = Priv;
238247 | ^^^^^^^^^^ can't leak private type
@@ -250,7 +259,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
250259 --> $DIR/private-in-public-warn.rs:207:9
251260 |
252261LL | 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
254266...
255267LL | type Check = Priv;
256268 | ^^^^^^^^^^ can't leak private type
@@ -259,7 +271,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
259271 --> $DIR/private-in-public-warn.rs:210:9
260272 |
261273LL | 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
263278...
264279LL | type Check = Priv;
265280 | ^^^^^^^^^^ can't leak private type
@@ -268,7 +283,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
268283 --> $DIR/private-in-public-warn.rs:213:9
269284 |
270285LL | 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
272290...
273291LL | type Check = Priv;
274292 | ^^^^^^^^^^ can't leak private type
@@ -277,7 +295,10 @@ error[E0446]: private type `aliases_pub::Priv` in public interface
277295 --> $DIR/private-in-public-warn.rs:216:9
278296 |
279297LL | 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
281302...
282303LL | type Check = Priv;
283304 | ^^^^^^^^^^ can't leak private type
0 commit comments