You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust: task failed at 'assertion failed: rp.is_none()', /build/rust/src/rust-0.7/src/librustc/middle/typeck/collect.rs:1040
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /build/rust/src/rust-0.7/src/librustc/rustc.rs:354
rust: domain main @0x1552d70 root task failed
The text was updated successfully, but these errors were encountered:
[`map_identity`]: allow closure with type annotations
Fixesrust-lang#9122
`.map(|a: u32| a)` can help type inference, so we should probably allow this and not warn about "unnecessary map of the identity function"
changelog: [`map_identity`]: allow closure with type annotations
I'm running rust 0.7-1, the following program:
Causes
rustc
to fail with the following messageThe text was updated successfully, but these errors were encountered: