Closed
Description
fn main() {
let x = "hello";
let ref y = x;
// let y = match x { ref y => y }; // this way works fine
error!("%?", *y);
}
produces:
rustc: /home/bblum/rust/src/llvm/lib/VMCore/Instructions.cpp:280:
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.
Aborted (core dumped)
Happens with structs, tuples, etc too.