2012-01-19 18:10:31 -06:00
|
|
|
enum taggy {
|
2012-03-26 20:35:18 -05:00
|
|
|
cons(@mut taggy),
|
2012-01-19 20:31:08 -06:00
|
|
|
nil,
|
2011-09-23 20:30:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn f() {
|
2012-03-26 20:35:18 -05:00
|
|
|
let box = @mut nil;
|
2011-09-23 20:30:22 -05:00
|
|
|
*box = cons(box);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
f();
|
|
|
|
}
|
|
|
|
|