Skip to content

ICE when transmuting [T,..1] to T #7988

Closed
@brendanzab

Description

@brendanzab
fn main() {
    unsafe { std::cast::transmute::<[int,..1],int>([1]) }
}
rust: task failed at 'option::get none', /rust/src/libstd/option.rs:362
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /rust/src/librustc/rustc.rs:366
rust: domain main @0x7f822300c610 root task failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-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