summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/restricted/private-in-public.rs
blob: 1e3dbdf73b96c93bed0428b9ec6c139ca3adaec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
mod foo {
    struct Priv;
    mod bar {
        use foo::Priv;
        pub(super) fn f(_: Priv) {}
        pub(crate) fn g(_: Priv) {} //~ ERROR E0446
        pub(crate) fn h(_: Priv) {} //~ ERROR E0446
    }
}

fn main() { }