about summary refs log tree commit diff
path: root/tests/ui/privacy/legacy-ctor-visibility.rs
blob: e698a481173f7c4e2aa6fcb67a0ccfdf9348901d (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 crate::S;
        fn f() {
            S(10);
            //~^ ERROR expected function, tuple struct or tuple variant, found struct `S`
        }
    }
}

fn main() {}