]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/restricted/private-in-public.stderr
Rollup merge of #106664 - chenyukang:yukang/fix-106597-remove-lseek, r=cuviper
[rust.git] / tests / ui / privacy / restricted / private-in-public.stderr
1 error[E0446]: private type `Priv` in public interface
2   --> $DIR/private-in-public.rs:6:9
3    |
4 LL |     struct Priv;
5    |     ----------- `Priv` declared as private
6 ...
7 LL |         pub(crate) fn g(_: Priv) {}
8    |         ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
9
10 error[E0446]: private type `Priv` in public interface
11   --> $DIR/private-in-public.rs:7:9
12    |
13 LL |     struct Priv;
14    |     ----------- `Priv` declared as private
15 ...
16 LL |         pub(crate) fn h(_: Priv) {}
17    |         ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0446`.