update compile-fail/map-types.rs to use hashmap

This commit is contained in:
Daniel Micay 2013-02-01 01:17:50 -05:00
parent 2846e033d7
commit 0a75aefad0

View File

@ -8,16 +8,14 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
extern mod std; use core::container::Map;
use std::map; use core::hashmap::linear::LinearMap;
use std::map::HashMap;
use std::map::StdMap;
// Test that trait types printed in error msgs include the type arguments. // Test that trait types printed in error msgs include the type arguments.
fn main() { fn main() {
let x: StdMap<~str,~str> = map::HashMap::<~str,~str>() as let x: Map<~str, ~str> = LinearMap::new::<~str, ~str>() as
StdMap::<~str,~str>; Map::<~str, ~str>;
let y: StdMap<uint,~str> = x; let y: Map<uint, ~str> = x;
//~^ ERROR mismatched types: expected `@std::map::StdMap<uint,~str>` //~^ ERROR mismatched types: expected `@core::container::Map/&<uint,~str>`
} }