rust/src/test/run-pass/fn-expr.rs

5 lines
95 B
Rust

// xfail-stage0
fn main() { auto x = fn (int a) -> int { ret a + 1; }; assert (x(4) == 5); }