summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-29161.rs
blob: 5c926dee05b21392f387b2990ffab83985275b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod a {
    struct A;

    impl Default for A {
        pub fn default() -> A { //~ ERROR visibility qualifiers are not permitted here
            A
        }
    }
}


fn main() {
    a::A::default();
    //~^ ERROR struct `A` is private
 }