2012-05-07 11:31:57 -07:00
|
|
|
fn foo(_x: @uint) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = @3u;
|
2012-06-30 12:23:59 +01: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 11:31:57 -07:00
|
|
|
}
|