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
yet another ICE with HRTB and RPIT #95647
Comments
|
Another likely related example? (the failed assertion is different though) trait Tr<'a> {
type Assoc;
}
impl<'a> Tr<'a> for () {
type Assoc = &'a ();
}
fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}Backtrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried this code:
(play)
I expected to see this happen: the code compiles.
Instead, this happened: ICE.
On stable this segfault because of a stackoverflow, but this was fixed by #94081. Now, on nightly (1.61.0-nightly (2022-04-03 6af09d2) this produces internal compiler error:
I've found this while working on #93582, this may be related to a similar ICE that I've found while testing it.
Backtrace
The text was updated successfully, but these errors were encountered: