Skip to content

LLVM error: Stored value type does not match pointer operand type! #19571

Closed
@elinorbgr

Description

@elinorbgr

This sample code:

#![feature(unboxed_closures)]
#[allow(unused_variables)]

fn main() {
    let a = Some(5u);
    let b = box move || { println!("{}", a); };
}

produces this output:

Stored value type does not match pointer operand type!
  store %"enum.core::option::Option<[uint]>[#3]" %6, %"enum.core::option::Option<[uint]>[#3]"** %7
 %"enum.core::option::Option<[uint]>[#3]"*LLVM ERROR: Broken function found, compilation aborted!

On rustc 5263600.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions