Closed
Description
Hi,
rustc fails to compile this program:
trait TheTrait { }
struct TheStruct(~TheTrait);
fn new() -> TheStruct {
fail!()
}
fn main() {
~new();
}
with
$ rustc --version
rustc 0.6 (a198aad 2013-06-13 03:25:11 -0700)
host: i686-unknown-linux-gnu
$ rustc usage.rs
rustc: (path to my rust build)/src/llvm/include/llvm/IR/Instructions.h:704: llvm::Type* llvm::checkGEPType(llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed.
Aborted (core dumped)
Metadata
Metadata
Assignees
Labels
No labels