Skip to content

Using methods in a first-class manner doesn't work #758

Closed
@msullivan

Description

@msullivan
obj foo() { fn f() { } }

fn main() {
    let my_foo = foo();
    let f = my_foo.f;
}

triggers

rustc: Instructions.cpp:968: void llvm::StoreInst::AssertOK(): Assertion `getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions