11 lines
132 B
Rust
11 lines
132 B
Rust
|
mod a {
|
||
|
struct Foo {
|
||
|
priv x: int
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let s = a::Foo { x: 1 }; //~ ERROR field `x` is private
|
||
|
}
|
||
|
|