ICE on generic associated type with a bound referencing the quantified type #63300
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-GATs
Area: Generic associated types (GATs)
C-bug
Category: This is a bug.
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I was reading https://varkor.github.io/blog/2019/03/28/idiomatic-monads-in-rust.html and decided to try some of the code samples, but the compiler panicked!
Crashes with
error: internal compiler error: src/librustc/ty/subst.rs:570: type parameter
T/#2(T/2) out of range when substituting (root type=Some(T)) substs=[<Self as Functor<A>>::HigherSelf, T]
The compiler mentions that 'generic associated types are unstable', but the crash occurs even with the feature gate turned off. This happens on both
stable
andnightly
.Traceback
Version
This issue has been assigned to @doctorn via this comment.
The text was updated successfully, but these errors were encountered: