error[E0616]: field `0` of struct `Foo` is private --> $DIR/ex-E0611.rs:11:6 | LL | y.0; | ^ private field error: aborting due to previous error For more information about this error, try `rustc --explain E0616`.