graydon/rust — Issue #1185: Predicate failure during translation of call to native returning generic type
Author: brson
Created: 2011-11-17 22:40:37+00:00
State: open
Labels: bug, trans, unassigned

```
native mod m {
fn cast() -> T;
}

type t = { t: T };

fn main() {
let i: t = m::cast();
}
```

```
rust: upcall fail 'Predicate type_has_static_size(ccx, ret_ty) failed', ../src/comp/middle/trans.rs:3851
rust: domain main @0x9745e38 root task failed
```