2012-03-26 20:35:18 -05:00
|
|
|
type foo = { mut z : fn@() };
|
2011-10-21 15:27:44 -05:00
|
|
|
|
|
|
|
fn nop() { }
|
|
|
|
fn nop_foo(_x : @foo) { }
|
|
|
|
|
|
|
|
fn main() {
|
2012-06-19 21:34:01 -05:00
|
|
|
let w = @{ mut z: {||nop()} };
|
|
|
|
let x = {||nop_foo(w)};
|
2011-10-21 15:27:44 -05:00
|
|
|
w.z = x;
|
|
|
|
}
|