]> git.proxmox.com Git - rustc.git/blob - src/test/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / transmutability / visibility / should_accept_if_src_has_unreachable_field.stderr
1 error[E0446]: private type `src::Zst` in public interface
2 --> $DIR/should_accept_if_src_has_unreachable_field.rs:22:9
3 |
4 LL | #[repr(C)] pub(self) struct Zst; // <- unreachable type
5 | -------------------- `src::Zst` declared as private
6 ...
7 LL | pub(in super) field: Zst,
8 | ^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0446`.