-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority
Milestone
Description
The privacy passes don't consider the type/value namespaces that resolve has, so you can use a private thing in a module so long as there's a public thing with the same name in a different namespace.
Original bug report
Static method on non-pub impl makes pub type private
use foo::Bar
does not resolve unless the static method is removed or the impl Bar
is marked pub
.
pub mod foo {
pub enum Bar {
Baz
}
impl Bar {
static fn where() { }
}
}
fn main() {
use foo::Bar;
}
Metadata
Metadata
Assignees
Labels
A-trait-systemArea: Trait systemArea: Trait systemA-type-systemArea: Type systemArea: Type systemP-mediumMedium priorityMedium priority