rust/tests/ui/pattern/usefulness/issue-82772-match-box-as-struct.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
295 B
Plaintext
Raw Normal View History

2021-08-25 15:58:49 -05:00
error[E0451]: field `1` of struct `Box` is private
--> $DIR/issue-82772-match-box-as-struct.rs:4:15
|
LL | let Box { 1: _, .. }: Box<()>;
| ^^^^ private field
error: aborting due to 1 previous error
2021-08-25 15:58:49 -05:00
For more information about this error, try `rustc --explain E0451`.