Skip to content

internal compiler error: no type for local variable #12885

Closed
@ghost

Description

A minimal code example that results in this error message:

static N: int = {
    let n: int = 56;
    n
};

fn main() {}
error: internal compiler error: no type for local variable 10u32
This message reflects a bug in the Rust compiler.
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complem
ent-bugreport.html
test.rs:5      let n: int = 56;
                    ^~~~~~~~~~~

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