We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e21fe commit cc2ebbeCopy full SHA for cc2ebbe
src/comp/syntax/print/pprust.rs
@@ -1718,8 +1718,13 @@ fn proto_to_str(p: &ast::proto) -> str {
1718
}
1719
1720
fn ty_constr_to_str(c: &@ast::ty_constr) -> str {
1721
+ fn ty_constr_path_to_str(p: &ast::path) -> str {
1722
+ "*." + path_to_str(p)
1723
+ }
1724
+
1725
ret path_to_str(c.node.path) +
- constr_args_to_str::<ast::path>(path_to_str, c.node.args);
1726
+ constr_args_to_str::<ast::path>(ty_constr_path_to_str,
1727
+ c.node.args);
1728
1729
1730
src/test/run-pass/constrained-type.rs
@@ -1,4 +1,3 @@
1
-// xfail-pretty
2
// -*- rust -*-
3
4
tag list { cons(int, @list); nil; }
0 commit comments