rust/tests/ui/issues/issue-13407.rs
2023-01-11 09:32:08 +00:00

10 lines
144 B
Rust

mod A {
struct C;
}
fn main() {
A::C = 1;
//~^ ERROR: invalid left-hand side of assignment
//~| ERROR: struct `C` is private
}