test: Fix parsing problem in map-types.rs

This commit is contained in:
Patrick Walton 2012-08-15 16:51:51 -07:00
parent 6319c8fbc4
commit e1b11aaf4b

View file

@ -6,7 +6,7 @@ import std::map::map;
// Test that trait types printed in error msgs include the type arguments.
fn main() {
let x: map<~str,~str> = map::str_hash::<~str>() as @map::<~str,~str>;
let x: map<~str,~str> = map::str_hash::<~str>() as map::<~str,~str>;
let y: map<uint,~str> = x;
//~^ ERROR mismatched types: expected `@std::map::map<uint,~str>`
}