ICE on for n in [1, 2, 3].iter()
if the type of 1, 2, 3 cannot be inferred
#15984
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
The following program ICE's on the playpen (will update to git HEAD and check there):
If you remove the
for
loop it is better, it will say "please add a suffix to 1" or something like that. (Maybe this was fixed by the recent changes in the for loop implementation?)Exact ICE is
Edit: The new for loop changes allow the above program to compile. But you can still access the bug with
which ICEs even with git HEAD. (Above I said "if you remove the for loop it doesn't crash" but evidently I was wrong.)
The text was updated successfully, but these errors were encountered: