Skip to content

ICE: adt::represent_type called on non-ADT type #10176

Closed
@sanxiyn

Description

@sanxiyn
fn f() -> int {
    (return 1, return 2)
}

fn main() {}
$ rustc ice.rs
error: internal compiler error: adt::represent_type called on non-ADT type

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.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