]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/private-struct-field-pattern.stderr
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / 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`.