2012-05-07 13:31:57 -05:00
|
|
|
fn foo(_x: @uint) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = @3u;
|
2012-06-30 06:23:59 -05:00
|
|
|
let _ = fn~() { foo(x); }; //~ ERROR not a sendable value
|
|
|
|
let _ = fn~(copy x) { foo(x); }; //~ ERROR not a sendable value
|
|
|
|
let _ = fn~(move x) { foo(x); }; //~ ERROR not a sendable value
|
2012-05-07 13:31:57 -05:00
|
|
|
}
|