Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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