Closed
Description
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.