Skip to content

ICE: translating unsupported cast: () (cast_other) -> uint (cast_integral) #10991

Closed
@klutzy

Description

@klutzy
fn f<T>(v: T) -> T {
    v
}
fn main() {
    let _ = f(()) as uint;
}
error: internal compiler error: translating unsupported cast: () (cast_other) -> uint (cast_integral)

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