summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/restricted/private-in-public.stderr
blob: 65d996f0f070940b8b5add3dfa0d6a0a7e1c1bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0446]: private type `Priv` in public interface
  --> $DIR/private-in-public.rs:6:9
   |
LL |     struct Priv;
   |     ----------- `Priv` declared as private
...
LL |         pub(crate) fn g(_: Priv) {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type

error[E0446]: private type `Priv` in public interface
  --> $DIR/private-in-public.rs:7:9
   |
LL |     struct Priv;
   |     ----------- `Priv` declared as private
...
LL |         pub(crate) fn h(_: Priv) {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0446`.