aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-24 18:25:10 -0700
committerGraydon Hoare <[email protected]>2010-06-24 18:25:10 -0700
commit1c60be2f32f70f9181a261ae2c2b4efe353d0f85 (patch)
treed4907c3dce08f41d8ca8e05acb6fca53d57930ed /src/test
parentA couple new tests for broken parts of the typechecker, XFAILed. (diff)
downloadrust-1c60be2f32f70f9181a261ae2c2b4efe353d0f85.tar.xz
rust-1c60be2f32f70f9181a261ae2c2b4efe353d0f85.zip
Fix bad output-slot logic in tag constructors.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/mlist-cycle.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/mlist-cycle.rs b/src/test/run-pass/mlist-cycle.rs
index 3875c5c2..2a371317 100644
--- a/src/test/run-pass/mlist-cycle.rs
+++ b/src/test/run-pass/mlist-cycle.rs
@@ -1,10 +1,10 @@
// -*- rust -*-
-type pair = rec(int head, mutable @mlist tail);
-type mlist = tag(cons(@pair), nil());
+type cell = tup(mutable @list);
+type list = tag(link(@cell), nil());
fn main() {
- let @pair p = rec(head=10, tail=mutable nil());
- let @mlist cycle = cons(p);
- //p.tail = cycle;
+ let @cell first = tup(@nil());
+ let @cell second = tup(@link(first));
+ first._0 = link(second);
}