summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/legacy-ctor-visibility.rs
blob: 5732b6446fea8e1b43b0d3af268ac576a738c292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use m::S;

mod m {
    pub struct S(u8);

    mod n {
        use S;
        fn f() {
            S(10);
            //~^ ERROR expected function, tuple struct or tuple variant, found struct `S`
        }
    }
}

fn main() {}