1 mod a { 2 pub struct Foo { 3 x: isize 4 } 5 } 6 main()7 fn main() { 8 let s = a::Foo { x: 1 }; //~ ERROR field `x` of struct `Foo` is private 9 } 10