-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Rustc can't check constness of foreign globals #9866
Comments
We should fail in a more graceful way, but I suspect we should still |
Yeah you're right. |
Closing as a dupe of the more modern #14227 (since the compiler behaviour has changed). |
Fix ICE in `unused_rounding` fixes rust-lang#9866 changelog: `unused_rounding`: Fix ICE when using the `_` separator
The following code cause Rustc to fail:
With the following message :
Shouldn't Rustc be able to compile this code ? Since the foreign global is static, it should be possible to use it in constant expressions, juste like any static declared in Rust code.
The text was updated successfully, but these errors were encountered: