rust/src/test/run-pass/move-nullary-fn.rs
2012-10-12 20:43:38 -07:00

10 lines
115 B
Rust

// Issue #922
fn f2(-thing: fn@()) { }
fn f(-thing: fn@()) {
f2(move thing);
}
fn main() {
f(fn@() {});
}