Skip to content

ICE: adt::represent_type called on non-ADT type when returning during tuple initialization #15993

Closed
@apoelstra

Description

@apoelstra

Today is not my day! I was trying to create a test case for another bug and I bumped into this ICE:

fn foo() -> (int, int) {
  (0, return (0, 0))
}

fn main() {}

I don't think this is a useful pattern (the original involved a try! which I had simplified to return just for the sake of bug reproduction --- with try! it doesn't ICE) but it probably shouldn't ICE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions