Skip to content

Commit a87a26a

Browse files
committed
this test still doesn't pass, but at least it parses...
1 parent e2c09fa commit a87a26a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/test/run-pass/mlist-cycle.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@
1010

1111
// xfail-test
1212
// -*- rust -*-
13-
extern mod std;
13+
extern mod core;
14+
use core::gc;
15+
use core::gc::rustrt;
1416

15-
type cell = {c: @list};
17+
struct cell {c: @list}
1618

1719
enum list { link(@mut cell), nil, }
1820

1921
pub fn main() {
20-
let first: @cell = @mut {c: @nil()};
21-
let second: @cell = @mut {c: @link(first)};
22+
let first: @cell = @mut cell{c: @nil()};
23+
let second: @cell = @mut cell{c: @link(first)};
2224
first._0 = @link(second);
23-
sys.rustrt.gc();
24-
let third: @cell = @mut {c: @nil()};
25+
rustrt::gc();
26+
let third: @cell = @mut cell{c: @nil()};
2527
}

0 commit comments

Comments
 (0)