Closed arielb1 closed 8 years ago
https://github.com/steveklabnik/glacier/pull/11 determined that this does, in fact, no longer ICE as of
rustc 1.5.0-nightly (7beebbe56 2015-10-22)
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 run-pass
test, doesn't it?
@skeleten yup! You'd put a file with these contents inside of src/test/run-pass
:)
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).