From 0a75aefad0e43e129fcba5e6c38fc9bbc620b952 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 1 Feb 2013 01:17:50 -0500 Subject: [PATCH] update compile-fail/map-types.rs to use hashmap --- src/test/compile-fail/map-types.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/test/compile-fail/map-types.rs b/src/test/compile-fail/map-types.rs index 7161e854447..f829c730637 100644 --- a/src/test/compile-fail/map-types.rs +++ b/src/test/compile-fail/map-types.rs @@ -8,16 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -extern mod std; -use std::map; -use std::map::HashMap; -use std::map::StdMap; +use core::container::Map; +use core::hashmap::linear::LinearMap; // Test that trait types printed in error msgs include the type arguments. fn main() { - let x: StdMap<~str,~str> = map::HashMap::<~str,~str>() as - StdMap::<~str,~str>; - let y: StdMap = x; - //~^ ERROR mismatched types: expected `@std::map::StdMap` + let x: Map<~str, ~str> = LinearMap::new::<~str, ~str>() as + Map::<~str, ~str>; + let y: Map = x; + //~^ ERROR mismatched types: expected `@core::container::Map/&` }