-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-type-systemArea: Type systemArea: Type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone
Description
Here is the code producing internal compiler error
import io::*;
fn main(){
let name = @["my","name","is","khan"];
for name.each |el| {
println(el)
}
}
also issue #2797 needs to be reopened because
fn foo(_x: &[int]) {}
fn main() {
let x = @[1,2,3];
foo(x);
}
fails with the same error
╰─$ rustc -v
rustc 0.3.1
host: x86_64-unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
A-type-systemArea: Type systemArea: Type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️