summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/issue-42944.rs
blob: 7e439c10b7b8408c08d8a2055a5748757cd50135 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mod foo {
    pub struct Bx(pub(in crate::foo) ());
}

mod bar {
    use foo::Bx;

    fn foo() {
        Bx(());
        //~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
    }
}

mod baz {
    fn foo() {
        Bx(());
        //~^ ERROR cannot find function, tuple struct or tuple variant `Bx` in this scope [E0425]
    }
}

fn main() {}