Skip to content

No recursion limit for projection #25945

@arielb1

Description

@arielb1
struct X<A>(A);
trait Foo { type Out; }

impl<T> Foo for X<T> {
    type Out = <X<T> as Foo>::Out;
}

fn main() {}

causes a stack overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions