aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/privacy1.rs
blob: 1cc83c04abe8c6568e3b8f81ec9f84db85087a77 (plain)
1
2
3
4
5
6
7
8
9
10
11
mod orange {
    mod green {
        fn sain() {}
        pub fn doux() {}
    }

    fn brown() {
        green::sain(); // { dg-error "definition is private in this context" }
        green::doux();
    }
}