rust/src/test/run-pass/move-nullary-fn.rs
Brian Anderson 107f1292eb Add tests for moving nullary functions
I believe this was fixed by marijn recently.

Closes #922
2011-09-19 19:04:33 -07:00

8 lines
102 B
Rust

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