Closed
Description
fn main() {
[].sort_by(| a, b | a.partial_cmp(b))
}
ice5.rs:2:27: 2:41 error: the type of this value must be known in this context
ice5.rs:2 [].sort_by(| a, b | a.partial_cmp(b))
^~~~~~~~~~~~~~
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. 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' panicked at 'assertion failed: `(left == right) && (right == left)` (left: `None`, right: `Some(())`)', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/typeck/check/method/confirm.rs:152