lifetime-parametric GATs cause ICEs (with feature(generic_associated_types)) #62521
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-GATs
Area: Generic associated types (GATs)
A-lifetimes
Area: Lifetimes / regions
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) ❄️
P-medium
Medium priority
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Many people playing with
#[feature(generic_associated_types)]
have noticed that they break very easily when you attempt to use a lifetime formal parameter.Examples follow
ICE: Region parameter out of range
#62326 (play):
#58694 (play)
#49362 (play)
ICE: cannot convert
ReEarlyBound(0, 'b)
to a region vid#60654 (play)
This obviously blocks stabilization of GATs (#44265).
The text was updated successfully, but these errors were encountered: