summary refs log tree commit diff
path: root/src/test/run-pass/cycle-collection4.rs
blob: d7a16f63a6d76cd8a102e0f7b0de6eaf506abc24 (plain)
1
2
3
4
5
6
7
8
9
10
type foo = { mutable z : fn@() };

fn nop() { }
fn nop_foo(_y: [int], _x : @foo) { }

fn main() {
    let w = @{ mutable z: bind nop() };
    let x = bind nop_foo([], w);
    w.z = x;
}