Rustc suggests using private fields from RwLock when trying to use a field nested into the locked type #90340
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a0e9303046930c910aaee89a9befe488
The current output is:
Ideally the output should look like:
The problem does not appear without the nested struct, see here: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=1a777cefd2794d5173f0d48a31156e4f
The text was updated successfully, but these errors were encountered: