Nested "impl trait" with lifetimes causing internal compiler error #46464
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
While trying to figure out how to return two iterators over a &str, the compiler crashed.
Link to playground
Error message:
error: internal compiler error: src\librustc\ty\subst.rs:424: Region parameter out of range when substituting in region 'a (root type=None) (index=1)
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: