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

warning: 1 warning emitted