Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
legendiguess opened this issue Aug 31, 2020 · 0 comments · Fixed by #264
Closed

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

legendiguess opened this issue Aug 31, 2020 · 0 comments · Fixed by #264
Labels
exp: low Achievable with little prior knowledge and guidance pri: high An issue resulting in complete or substantial loss of functionality, that can be circumvented type: fix Bug fix or report

Comments

@legendiguess
Copy link
Contributor

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

@baszalmstra baszalmstra added exp: low Achievable with little prior knowledge and guidance pri: high An issue resulting in complete or substantial loss of functionality, that can be circumvented type: fix Bug fix or report labels Sep 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp: low Achievable with little prior knowledge and guidance pri: high An issue resulting in complete or substantial loss of functionality, that can be circumvented type: fix Bug fix or report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants