]> git.lizzy.rs Git - rust.git/blob - src/test/ui/expr-block-fn.rs
Merge commit '8f1ebdd18bdecc621f16baaf779898cc08cc2766' into clippyup
[rust.git] / src / test / ui / expr-block-fn.rs
1 // run-pass
2
3 fn test_fn() {
4     fn ten() -> isize { return 10; }
5     let rs = ten;
6     assert_eq!(rs(), 10);
7 }
8
9 pub fn main() { test_fn(); }