rust/src/test/run-pass/mlist-cycle.rs

11 lines
218 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
type pair = rec(int head, mutable @mlist tail);
type mlist = tag(cons(@pair), nil());
fn main() {
let @pair p = rec(head=10, tail=mutable nil());
let @mlist cycle = cons(p);
//p.tail = cycle;
}