Skip to content

Rejection of self-referential closure signature in new solver due to lack of eager norm #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
compiler-errors opened this issue Apr 29, 2025 · 0 comments
Assignees
Labels
from-crater A regression found via a crater run, not part of our test suite

Comments

@compiler-errors
Copy link
Member

compiler-errors commented Apr 29, 2025

This affects polars

trait Indir<T>: FnOnce(T) -> Self::Ret {
    type Ret;
}
impl<F, T, R> Indir<T> for F where F: FnOnce(T) -> R {
    type Ret = R;
}

trait Mirror {
    type Assoc<'a>;
}

fn needs<T: Mirror>(_: impl for<'a> Indir<T::Assoc<'a>>) {}

fn test<T>() where for<'a> T: Mirror<Assoc<'a> = i32> {
    needs::<T>(|x| { x.to_string(); });
}
@lcnr lcnr added the from-crater A regression found via a crater run, not part of our test suite label Apr 29, 2025
@compiler-errors compiler-errors self-assigned this Apr 29, 2025
@lcnr lcnr moved this from unknown to todo in -Znext-solver=globally Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from-crater A regression found via a crater run, not part of our test suite
Projects
Development

No branches or pull requests

2 participants