11 lines
201 B
Rust
11 lines
201 B
Rust
//! 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
|
|
}
|