Skip to content

TODO(@lcnr): why fail #167

Open
Open
@lcnr

Description

@lcnr
//@ check-pass
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)

trait Sup {
    type As;
}
trait Trait<'d>: Sup {}
fn foo3<T>()
where
    for<'i> T: Trait<'i, As: Trait<'i, As: Sup>>,
{
}

fn main() {}

This test fails with https://github.com/lcnr/rust/pull/new/no-region-unification. I have to figure out whether that's a fundamental issue or not.

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