rust/src/test/run-pass/expr-block-fn.rs
2018-12-25 21:08:33 -07:00

8 lines
128 B
Rust

fn test_fn() {
fn ten() -> isize { return 10; }
let rs = ten;
assert_eq!(rs(), 10);
}
pub fn main() { test_fn(); }