about summary refs log tree commit diff
path: root/tests/ui/privacy/private-unit-struct-assignment.rs
blob: b8e1c4ecb188eb873a220db2ff7bea503a5d3289 (plain)
1
2
3
4
5
6
7
8
9
10
11
//! Regression test for https://github.com/rust-lang/rust/issues/13407

mod A {
    struct C;
}

fn main() {
    A::C = 1;
    //~^ ERROR: mismatched types
    //~| ERROR: unit struct `C` is private
}