Visibility of inherent associated types is not checked on access #104243
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-visibility
Area: Visibility / privacy
C-bug
Category: This is a bug.
F-inherent_associated_types
`#![feature(inherent_associated_types)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In the following code, I can successfully refer to the private inherent associated type
m::T::P
:I expected to see an error denying the access.
If the associated item was a constant, this would indeed be the case:
Meta
rustc --version --verbose
:@rustbot label T-compiler requires-nightly A-associated-items A-visibility F-inherent_associated_types
The text was updated successfully, but these errors were encountered: