ICE - ReInfer left in a type when using closures #17636
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-type-system
Area: Type system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
The following code (seems minimal) ICEs:
with the following error
The issue seems to be a ReInfer left in a type, and it seems to be related to an heisenbug that me and eddyb faced while refactoring ty::t.
The issue seems to be present at least in versions 2550243 to 1f3cda8, but
play.rust-lang.org
's Rust 0.11 seems to return a (seemingly wrong) type error instead of ICE'ing:error: cannot determine a type for this bounded type parameter: unconstrained type
.The text was updated successfully, but these errors were encountered: