From ede42cf931dc9cb7c7f4c78d7f9521985c2a8e11 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 22 Jul 2010 17:05:45 -0700 Subject: A certain incomplete quantity of wrestling with "INIT" statements that don't actually initialize. Should probably rename them to MAKE. Anyway, WIP, but two steps forward (and one back). More later. --- src/test/run-pass/mlist-cycle.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/mlist-cycle.rs b/src/test/run-pass/mlist-cycle.rs index c41cd5f5..09221ea3 100644 --- a/src/test/run-pass/mlist-cycle.rs +++ b/src/test/run-pass/mlist-cycle.rs @@ -6,9 +6,9 @@ type cell = tup(mutable @list); type list = tag(link(@cell), nil()); fn main() { - let @cell first = tup(@nil()); - let @cell second = tup(@link(first)); + let @cell first = @tup(mutable @nil()); + let @cell second = @tup(mutable @link(first)); first._0 = @link(second); std.sys.rustrt.gc(); - let @cell third = tup(@nil()); + let @cell third = @tup(mutable @nil()); } -- cgit v1.2.3