Skip to content

Commit 3869b3b

Browse files
committed
Modernize test/run-pass/generic-recursive-tag.rs. Un-XFAIL it in rustboot.
1 parent 7fa8936 commit 3869b3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \
410410
test/run-pass/vec-slice.rs \
411411
test/run-pass/fn-lval.rs \
412412
test/run-pass/generic-fn-box.rs \
413-
test/run-pass/generic-recursive-tag.rs \
414413
test/run-pass/generic-tup.rs \
415414
test/run-pass/iter-ret.rs \
416415
test/run-pass/lib-io.rs \
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
tag list[T] {
22
cons(@T, @list[T]);
3-
nil();
3+
nil;
44
}
55

66
fn main() {
7-
let list[int] a = cons[int](10, cons[int](12, cons[int](13, nil[int]())));
8-
}
7+
let list[int] a = cons[int](@10, @cons[int](@12, @cons[int](@13,
8+
@nil[int])));
9+
}

0 commit comments

Comments
 (0)