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