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