rust/src/test/run-pass/do1.rs
2012-06-18 17:42:30 -07:00

6 lines
77 B
Rust

fn f(f: fn@(int)) { f(10) }
fn main() {
do f() { |i| assert i == 10 }
}