rust/tests/ui/issues/issue-13407.rs

10 lines
129 B
Rust

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