We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2c09fa commit a87a26aCopy full SHA for a87a26a
src/test/run-pass/mlist-cycle.rs
@@ -10,16 +10,18 @@
10
11
// xfail-test
12
// -*- rust -*-
13
-extern mod std;
+extern mod core;
14
+use core::gc;
15
+use core::gc::rustrt;
16
-type cell = {c: @list};
17
+struct cell {c: @list}
18
19
enum list { link(@mut cell), nil, }
20
21
pub fn main() {
- let first: @cell = @mut {c: @nil()};
- let second: @cell = @mut {c: @link(first)};
22
+ let first: @cell = @mut cell{c: @nil()};
23
+ let second: @cell = @mut cell{c: @link(first)};
24
first._0 = @link(second);
- sys.rustrt.gc();
- let third: @cell = @mut {c: @nil()};
25
+ rustrt::gc();
26
+ let third: @cell = @mut cell{c: @nil()};
27
}
0 commit comments