rust/src/test/run-pass/issue-6141-leaking-owned-fn.rs
Alex Crichton 30862a64c2 Fix run-pass tests to have 'pub fn main'
This is required by the check-fast target because each test is slurped up into a
submodule.
2013-09-25 00:43:37 -07:00

9 lines
86 B
Rust

fn run(f: &fn()) {
f()
}
pub fn main() {
let f: ~fn() = || ();
run(f);
}