confusing error message 'constructor is not visible here due to private fields' #83450
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
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=2018&gist=ab05c6fc2149226b37b685ca913e1707
The current output is:
Ideally the first error should look like the second, i.e. suggest using
SomeTupleStruct::new
instead.The text was updated successfully, but these errors were encountered: