2020-09-02 10:40:56 +03:00
|
|
|
error[E0446]: private type `Priv` in public interface
|
2022-05-20 21:06:44 -04:00
|
|
|
--> $DIR/private-in-public.rs:6:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | struct Priv;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ----------- `Priv` declared as private
|
2018-08-08 14:28:26 +02:00
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | pub(crate) fn g(_: Priv) {}
|
2020-08-12 17:02:14 -04:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
error[E0446]: private type `Priv` in public interface
|
2022-05-20 21:06:44 -04:00
|
|
|
--> $DIR/private-in-public.rs:7:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | struct Priv;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ----------- `Priv` declared as private
|
2018-08-08 14:28:26 +02:00
|
|
|
...
|
2022-05-20 21:06:44 -04:00
|
|
|
LL | pub(crate) fn h(_: Priv) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0446`.
|