Skip to content

Iterators don't seem to work for polymorphic types #829

Closed
@msullivan

Description

@msullivan
iter iter2<@T>() -> T { }
fn main() {
    for each i: int in iter2() { }
}

fails with

rustc: Instructions.cpp:192: void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions