ICE when using anonymization in impl Trait with HRTB #54895
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
P-high
High priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-traits
Working group: Traits, https://internals.rust-lang.org/t/announcing-traits-working-group/6804
I tried this code:
It uses the anonymization of associated type inside of impl Trait in return type position.
The compiler reports an ICE as follows:
Meta
rustc --version --verbose
:backtrace:
The text was updated successfully, but these errors were encountered: