about summary refs log tree commit diff
path: root/tests/ui/privacy/struct-field-type.stderr
blob: 854ff6a98a46b89db91f1d70d2539f6c469ad982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
warning: type `Priv` is more private than the item `Leak`
  --> $DIR/struct-field-type.rs:3:5
   |
LL |     pub type Leak = Priv;
   |     ^^^^^^^^^^^^^ type alias `Leak` is reachable at visibility `pub(crate)`
   |
note: but type `Priv` is only usable at visibility `pub(self)`
  --> $DIR/struct-field-type.rs:2:5
   |
LL |     struct Priv;
   |     ^^^^^^^^^^^
   = note: `#[warn(private_interfaces)]` on by default

error: type `Priv` is private
  --> $DIR/struct-field-type.rs:7:5
   |
LL |     field: m::Leak,
   |     ^^^^^ private type

error: aborting due to 1 previous error; 1 warning emitted