mozilla/rust — Issue #1916: using resources as explicit type argument yields ICE
Author: nikomatsakis
Created: 2012-03-01 16:08:10+00:00
State: open

I have no idea what's going on here, but it has something to do with using a resource as the type argument to `foo()`:

```
resource r(_i: uint) {
}

fn foo() {
}

fn main() {
foo::();
}
```

yields the following

```
Running /usr/local/bin/rustc:
rust: upcall fail 'option none', ../src/libcore/option.rs:34
0 librustrt.dylib 0x000000010c2939f9 __morestack + 9