Closed
Description
Test case:
struct Foo {
x: int;
}
impl Foo {
fn f(&self) {}
}
fn g(x: &mut Foo) {
x.f();
}
fn main() {
}
Error:
rustc: /home/pcwalton/Source/rust/src/llvm/lib/VMCore/Instructions.cpp:1062: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
@nikomatsakis, any ideas?