-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Offending code:
extern crate core;
use core::fmt;
fn show_all<I: fmt::String>(iter: &mut Iterator<Item=I>) {
for i in *iter {
println!("{}", i);
}
}
fn main() {
let v = vec![1i32, 2, 3, 4];
show_all(&mut v.iter());
}Compiler error (formatted):
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/llvm/lib/IR/Instructions.cpp:281:
void llvm::CallInst::init(llvm::Value*, llvm::ArrayRef<llvm::Value*>, const llvm::Twine&):
Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) &&
"Calling a function with a bad signature!"' failed.
Rust version:
$ rustc --version
rustc 1.0.0-nightly (f4f10dba2 2015-01-17 20:31:08 +0000)
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️