-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE with unannotated literals #18954
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
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
trait Num {}
impl Num for i32 {}
impl Num for f32 {}
fn vec2s<T: Num>(a: T) {}
fn main() {
// Removing either of these lines, or explicitly typing one of the literals stops the ICE from happening
vec2s(0.0);
vec2s(0);
}
|
It seems this bug is specifically triggered by using untyped literals, so perhaps the issue title should be changed. |
can confirm this is still present in |
Yet another duplicate of #24352. |
Thanks for finding all these duplicates @arielb1! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: