summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-76077.rs
blob: 2d29093b01b02e5b6635f70d6c662e183235d81c (plain)
1
2
3
4
5
6
7
8
9
10
pub mod foo {
    pub struct Foo {
        you_cant_use_this_field: bool,
    }
}

fn main() {
    foo::Foo {};
    //~^ ERROR cannot construct `Foo` with struct literal syntax due to private fields
}