test: Fix parsing problem in map-types.rs
This commit is contained in:
parent
6319c8fbc4
commit
e1b11aaf4b
1 changed files with 1 additions and 1 deletions
|
@ -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>`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue