Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
huonw opened this issue Aug 1, 2014 · 0 comments · Fixed by #16632
Closed

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

huonw opened this issue Aug 1, 2014 · 0 comments · Fixed by #16632
Labels
A-closures Area: Closures (`|…| { … }`) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@huonw
Copy link
Member

huonw commented Aug 1, 2014

#![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

@huonw huonw added the I-ICE label Aug 1, 2014
@huonw huonw changed the title unboxed closures ICE: overloaded call method wasn't in method map unboxed closures + overloaded calls ICE: overloaded call method wasn't in method map Aug 1, 2014
pcwalton added a commit to pcwalton/rust that referenced this issue Aug 20, 2014
bors added a commit that referenced this issue Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-closures Area: Closures (`|…| { … }`) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant