summary refs log tree commit diff
path: root/src/test/run-pass/cycle-collection.rs
blob: dd00fcbbbefcd5369f36d3a4fdaa817f52130146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
enum taggy {
    cons(@mutable taggy),
    nil,
}

fn f() {
    let box = @mutable nil;
    *box = cons(box);
}

fn main() {
    f();
}