[BUG REPORT]: Internal Compiler Error on stable surrounding type inference #71955
Labels
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) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Stable rust throws an internal compiler error (ICE) that appears to be related to type inference surrounding higher rank trait bounds (HRTBs) and associated types.
Code:
playground
Expectaions:
I expected this code to compile and run smoothly, without throwing any errors at compile time or runtime.
Result
Instead, this happened:
Meta
Rust version: this is running on the playground on the stable version.
On my local machine (which gives the same output)
rust --version --verbose
:Backtrace (on playground):
Backtrace (with verbose enabled) (on my local machine):
The text was updated successfully, but these errors were encountered: