6 lines
92 B
Rust
6 lines
92 B
Rust
fn f(f: fn@(int) -> int) -> int { f(10) }
|
|
|
|
fn main() {
|
|
assert do f() { |i| i } == 10;
|
|
}
|