Skip to content

'main' panicked at 'internal error: entered unreachable code #262

@legendiguess

Description

@legendiguess

Code to reproduce:

fn foo() -> i32 {
    let bar = {
        let b = 3;
        return b + 3;
    };

    // This code will never be executed
    let a = 3 + 4;
    a
}

Tested on mun v0.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp: lowAchievable with little prior knowledge and guidancepri: highAn issue resulting in complete or substantial loss of functionality, that can be circumventedtype: fixBug fix or report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions