]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0451]: field `x` of struct `a::Foo` is private |
0731742a | 2 | --> $DIR/private-struct-field-ctor.rs:8:22 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | let s = a::Foo { x: 1 }; |
ba9703b0 | 5 | | ^^^^ private field |
b7449926 XL |
6 | |
7 | error: aborting due to previous error | |
8 | ||
9 | For more information about this error, try `rustc --explain E0451`. |