6 lines
92 B
Rust
Raw Normal View History

2012-06-18 17:42:09 -07:00
fn f(f: fn@(int) -> int) -> int { f(10) }
fn main() {
2012-06-30 16:19:07 -07:00
assert do f() |i| { i } == 10;
2012-06-18 17:42:09 -07:00
}