1 error[E0451]: field `x` of struct `a::Foo` is private
2 --> $DIR/private-struct-field-ctor.rs:18:22
4 LL | let s = a::Foo { x: 1 }; //~ ERROR field `x` of struct `a::Foo` is private
5 | ^^^^ field `x` is private
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0451`.