Skip to content

"Invalid cast" with vec::iter(fail) #2151

@jruderman

Description

@jruderman
fn main() {
    vec::iter(fail) {|i|
        log (error, i * 2);
    };
}

Breaks rustc with:

Assertion failed: (S->getType()->isPointerTy() && "Invalid cast"), function getPointerCast, file /Users/jruderman/code/rust/src/llvm/lib/VMCore/Constants.cpp, line 1405.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions