-
Notifications
You must be signed in to change notification settings - Fork 13k
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 unannotated literals #18954
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);
}
|
huonw
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Nov 16, 2014
It seems this bug is specifically triggered by using untyped literals, so perhaps the issue title should be changed. |
steveklabnik
changed the title
Compiler error when implementing generic trait twice with different type.
ICE with unannotated literals
Apr 21, 2015
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: