Private type exposed in public without a warning #73410
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Here is the code:
I expected to see this happen (compile error):
Instead, this happened: compiles just fine.
Trying to use the type fails, since it's private
Meta
Tested on stable 1.44.0 and nightly of 1.46.0
playground link
The text was updated successfully, but these errors were encountered: