summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-29161.rs
blob: d80405aa85624b85d4b29680afe9ff82c3873f18 (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 unnecessary visibility qualifier
            A
        }
    }
}


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