Skip to content

internal compiler error: const expr(33: Msg::Start) of type main::Msg has size 1 instead of 16 #26166

Closed
@nnethercote

Description

@nnethercote

This Rust code makes rustc stop with an internal compile error.

fn main() {
    enum Msg {
        Start,
        Measure(Fn() -> usize),
    }

    let _ = Msg::Start;
}

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