aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-07 15:12:41 -0800
committerPatrick Walton <[email protected]>2011-03-07 15:12:41 -0800
commit3869b3bfe489fc8db37b4436a9a38e732cc3d219 (patch)
treeadab78a6dd41d253b9c722c7ce8e39b188294f71 /src/test
parentUn-XFAIL 5 more tests that pass lately. (diff)
downloadrust-3869b3bfe489fc8db37b4436a9a38e732cc3d219.tar.xz
rust-3869b3bfe489fc8db37b4436a9a38e732cc3d219.zip
Modernize test/run-pass/generic-recursive-tag.rs. Un-XFAIL it in rustboot.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/generic-recursive-tag.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/run-pass/generic-recursive-tag.rs b/src/test/run-pass/generic-recursive-tag.rs
index ad06345b..b9596b0d 100644
--- a/src/test/run-pass/generic-recursive-tag.rs
+++ b/src/test/run-pass/generic-recursive-tag.rs
@@ -1,8 +1,9 @@
tag list[T] {
cons(@T, @list[T]);
- nil();
+ nil;
}
fn main() {
- let list[int] a = cons[int](10, cons[int](12, cons[int](13, nil[int]())));
-} \ No newline at end of file
+ let list[int] a = cons[int](@10, @cons[int](@12, @cons[int](@13,
+ @nil[int])));
+}