Closed
Description
opened on Dec 4, 2012
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;
}
Activity