2012-06-19 19:28:29 -05:00
|
|
|
fn main() {
|
2012-06-22 15:11:29 -05:00
|
|
|
class foo {
|
|
|
|
let _x: comm::port<()>;
|
|
|
|
new(x: comm::port<()>) { self._x = x; }
|
|
|
|
drop {}
|
|
|
|
}
|
|
|
|
|
2012-06-19 19:28:29 -05:00
|
|
|
let x = ~mut some(foo(comm::port()));
|
|
|
|
|
2012-06-30 18:19:07 -05:00
|
|
|
do task::spawn |move x| { //! ERROR not a sendable value
|
2012-06-19 19:28:29 -05:00
|
|
|
let mut y = none;
|
|
|
|
*x <-> y;
|
|
|
|
log(error, y);
|
|
|
|
}
|
|
|
|
}
|