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