about summary refs log tree commit diff
path: root/tests/ui/privacy/struct-field-type.rs
blob: 6a4a19297e190b91f09d471d304a007332385dd7 (plain)
1
2
3
4
5
6
7
8
9
10
mod m {
    struct Priv;
    pub type Leak = Priv; //~ WARN: `Priv` is more private than the item `Leak`
}

struct S {
    field: m::Leak, //~ ERROR: `Priv` is private
}

fn main() {}