summaryrefslogtreecommitdiffstats
path: root/tests/ui/transmutability/visibility/should_accept_if_src_has_unreachable_field.stderr
blob: 55fb339230578008aeaecdf6dc922402097a53e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
warning: type `src::Zst` is more private than the item `Src::field`
  --> $DIR/should_accept_if_src_has_unreachable_field.rs:24:9
   |
LL |         pub(in super) field: Zst,
   |         ^^^^^^^^^^^^^^^^^^^^^^^^ field `Src::field` is reachable at visibility `pub(crate)`
   |
note: but type `src::Zst` is only usable at visibility `pub(self)`
  --> $DIR/should_accept_if_src_has_unreachable_field.rs:21:16
   |
LL |     #[repr(C)] pub(self) struct Zst; // <- unreachable type
   |                ^^^^^^^^^^^^^^^^^^^^
   = note: `#[warn(private_interfaces)]` on by default

warning: 1 warning emitted