Skip to content

unboxed closures + overloaded calls ICE: overloaded call method wasn't in method map #16166

Closed
@huonw

Description

@huonw
#![feature(unboxed_closures, overloaded_calls)]

fn main() {
    let unboxed = |&mut:| {};
    unboxed();
}
error: internal compiler error: overloaded call method wasn't in method map
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /build/rust-git/src/rust/src/libsyntax/ast_util.rs:784

cc @pcwalton

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-closuresArea: Closures (`|…| { … }`)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions