-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE when using associated constants #27249
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
Labels
A-associated-items
Area: Associated items (types, constants & functions)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
For what it's worth, this also causes an ICE: const FOO: u32 = 5;
fn main() {
FOO;
}
|
Closed
Merged
Current ICE is:
This isn't specific to associated items. All sized constants trip this assert. |
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 🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-associated-items
Area: Associated items (types, constants & functions)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
The following code results in a compiler panic:
Backtrace:
The text was updated successfully, but these errors were encountered: