2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
|
|
|
|
2011-04-07 22:12:55 -04:00
|
|
|
fn test_fn() {
|
2015-03-25 17:06:52 -07:00
|
|
|
fn ten() -> isize { return 10; }
|
2015-01-02 17:32:54 -05:00
|
|
|
let rs = ten;
|
2015-06-07 21:00:38 +03:00
|
|
|
assert_eq!(rs(), 10);
|
2011-04-07 22:12:55 -04:00
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() { test_fn(); }
|