mozilla/rust — Issue #1873: import foo::* sometimes fails to import foo::foo
Author: marijnh
Created: 2012-02-21 14:28:32+00:00
State: open
Labels: I-wrong

The file below fails with `unresolved name: foo` (in the main fn). When moving the import and main out of the extra module, the problem goes away. It also does not happen if `fn foo` has a name different from its enclosing module.

```
mod foo {
fn foo() {}
}
mod blah {
import foo::*;
fn main() { foo(); }
}
```