diff options
| -rw-r--r-- | src/comp/syntax/print/pprust.rs | 7 | ||||
| -rw-r--r-- | src/test/run-pass/constrained-type.rs | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/comp/syntax/print/pprust.rs b/src/comp/syntax/print/pprust.rs index 21d446c9c5c..e0b47ecde39 100644 --- a/src/comp/syntax/print/pprust.rs +++ b/src/comp/syntax/print/pprust.rs @@ -1718,8 +1718,13 @@ fn proto_to_str(p: &ast::proto) -> str { } fn ty_constr_to_str(c: &@ast::ty_constr) -> str { + fn ty_constr_path_to_str(p: &ast::path) -> str { + "*." + path_to_str(p) + } + ret path_to_str(c.node.path) + - constr_args_to_str::<ast::path>(path_to_str, c.node.args); + constr_args_to_str::<ast::path>(ty_constr_path_to_str, + c.node.args); } diff --git a/src/test/run-pass/constrained-type.rs b/src/test/run-pass/constrained-type.rs index 48114a05784..96ab84cb53d 100644 --- a/src/test/run-pass/constrained-type.rs +++ b/src/test/run-pass/constrained-type.rs @@ -1,4 +1,3 @@ -// xfail-pretty // -*- rust -*- tag list { cons(int, @list); nil; } |
