]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-struct-field-pattern.stderr
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[rust.git] / src / test / ui / privacy / private-struct-field-pattern.stderr
1 error[E0451]: field `x` of struct `Foo` is private
2   --> $DIR/private-struct-field-pattern.rs:15:15
3    |
4 LL |         Foo { x: _ } => {}
5    |               ^^^^ private field
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0451`.