1 2 3 4 5 6 7 8 9
mod A { struct C; } fn main() { A::C = 1; //~^ ERROR: invalid left-hand side of assignment //~| ERROR: struct `C` is private }