Closed
Description
Minimal example:
pub trait X { fn f(&self); }
impl X for int { fn f(&self) {} }
pub struct Z<'self>(Option<&'self X>);
pub fn main() { let x = 42; let z = Z(Some(&x as &X)); let _ = z; }
In my Windows machine, it results in:
Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!", file c:/bot/slave/dist2-win/build/src/llvm/lib/IR/Instructions.cpp, line 281
Reproduced on Rust 0.8 and 0.9-pre (371a7ec). It doesn't seem to be Windows specific either.