ICE with probably recursive opaque types and closures #99072
Labels
C-bug
Category: This is a bug.
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.
Messing around with a Haskell-like implementation of
fix
, I encountered two presumably similar ICEs(would think they're the same, but the error messages are obviously different). The other one is here.
I'm pretty sure this should be an error, based on the reasoning that
fix
returns an opaque type, so, while the output offix
might beG
, it also might not (and in this case, isn't), and sincef
only acceptsG
s,f(fix(anything))
should be an error.Code
Meta
rustc --version --verbose
:Same ICE on nightly:
Error output
Backtrace
The text was updated successfully, but these errors were encountered: