graydon/rust — Issue #1114: mod std can't import option::t as option then re-export it
Author: brson
Created: 2011-11-02 03:11:30+00:00
State: open
Labels: bug, design, unassigned

I've just tried this in std:

```
import option = option::t;
export option;
```

and it gets this error

```
../src/lib/std.rs:2:0: 2:25 error: unresolved modulename: option
../src/lib/std.rs:2 import option = option::t;
```

There's a workaround, but I think this is probably the pattern we want to work for raising types like option::t out of their modules.