Can reach private modules through public modules from outside the crate #7388
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
rustc version:
Given two crates,
crate1.rs
andcrate2.rs
, I can access a private module withincrate2.rs
through a public module.crate1.rs
:crate2.rs
:The text was updated successfully, but these errors were encountered: