-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE with closure in array size #28189
Comments
rust-lang/glacier#11 determined that this does, in fact, no longer ICE as of
As such, we just need a test. I am happy to mentor anyone who wants to add one. |
I'd like to add that test. It probably just needs a |
@skeleten yup! You'd put a file with these contents inside of |
uhm... shouldn't this error, due to the fact that we can't have closures in constant expressions? It might not be used, but if it exists in a publicly exported const, it can be very surprising. The only reason it works is due to the lazy nature of the const evaluator. Which is going to get us into trouble sooner than later. |
STR
ICE
This is a distinct bug from #28181 (it is an 1.2-1.3 regression, not a 1.3-1.4 regression).
The text was updated successfully, but these errors were encountered: