Skip to content

Existential_type compiler stack overflow #52977

Closed
@DutchGhost

Description

@DutchGhost

Playing with the nighly's existential types, I stumbled upon a compiler stack overflow:

#![feature(existential_type)]

existential type Foo: Fn() -> Foo;

fn crash(x: Foo) -> Foo {
    x
}

fn main() {
    
}

Error message:

Compiling playground v0.0.1 (file:///playground)

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
error: Could not compile `playground`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions