-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 mut reference in static mut
#26263
Comments
I think the original intent was to allow references to slices |
What level of this should be allowed? We don't borrowck statics, so you can do |
I would figure if someone is willing to use unsafe blocks to build a static mut variable, we should just let them shoot themselves in the foot. You can construct a static mut variable containing |
Triage: Still an issue. |
This ICE seems to be fixed on
I have a hunch that this is due to MIR being turned on, though I'm not sure. Please let me know if this still ICEs for you, but closing for now 🎊 |
Testcase:
Produces:
The text was updated successfully, but these errors were encountered: