1 error[E0451]: field `x` of struct `a::Foo` is private
2 --> $DIR/private-struct-field-pattern.rs:25:15
4 LL | Foo { x: _ } => {} //~ 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`.