summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-75906.rs
blob: 710039d79e77b2cd741664fdecb5f305e1443c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod m {
    pub struct Foo { x: u8 }

    pub struct Bar(u8);
}

use m::{Foo, Bar};

fn main() {
    let x = Foo { x: 12 };
    let y = Bar(12);
    //~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
}