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

8 lines
128 B
Rust
Raw Normal View History

fn test_fn() {
fn ten() -> isize { return 10; }
2015-01-02 17:32:54 -05:00
let rs = ten;
assert_eq!(rs(), 10);
}
pub fn main() { test_fn(); }