aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/mlist-cycle.rs
blob: 2a371317541a9b99b05adaeec7dda16037f28a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// -*- rust -*-

type cell = tup(mutable @list);
type list = tag(link(@cell), nil());

fn main() {
  let @cell first = tup(@nil());
  let @cell second = tup(@link(first));
  first._0 = link(second);
}