blob: 455368c47716c598d1c87ffe80b44f1e036b2e60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// xfail-test
// -*- rust -*-
use std;
type cell = {mutable c: @list};
enum list { link(@cell), nil, }
fn main() {
let first: @cell = @{mutable c: @nil()};
let second: @cell = @{mutable c: @link(first)};
first._0 = @link(second);
sys.rustrt.gc();
let third: @cell = @{mutable c: @nil()};
}
|