Private tuple struct field causes confusing error message in cross-crate usage #57951
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Related to, but not a duplicate of #52144.
Interestingly, the following code:
Gives a better, but still confusing error message:
Tested in
rustc 1.34.0-nightly (c1c3c4e95 2019-01-29)
.The text was updated successfully, but these errors were encountered: