15 lines
129 B
Rust
15 lines
129 B
Rust
enum taggy {
|
|
cons(@mut taggy),
|
|
nil,
|
|
}
|
|
|
|
fn f() {
|
|
let box = @mut nil;
|
|
*box = cons(box);
|
|
}
|
|
|
|
fn main() {
|
|
f();
|
|
}
|
|
|