Closed
Description
The program
extern crate collections;
use collections::treemap::TreeMap;
fn main() {
let mut a = TreeMap::new();
a.insert(0, 1);
a.insert(0, "foo");
}
gives the type error
treemap-test.rs:7:17: 7:22 error: mismatched types: expected `<generic integer #1>` but found `&'static str` (expected integral variable but found &-ptr)
treemap-test.rs:7 a.insert(0, "foo");
^~~~~
This error should indicate the source of the expectation that the type parameter is integral.