Type inference results in accessing a private type, causing a compilation error #77986
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
A-visibility
Area: Visibility / privacy.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code (playground):
I expected to see this happen: Code should compile successfully
Instead, this happened:
Note also that no error code is given.
Meta
Rust playground version 1.47.0
cc @jswrenn
The text was updated successfully, but these errors were encountered: