提交 e1b11aaf 编写于 作者: P Patrick Walton

test: Fix parsing problem in map-types.rs

上级 6319c8fb
......@@ -6,7 +6,7 @@
// 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>`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册