2012-09-26 03:47:21 -05:00
|
|
|
fn good(a: &int) {
|
|
|
|
}
|
|
|
|
|
|
|
|
// unnamed argument &int is now parse x: &int
|
|
|
|
|
2013-03-07 16:38:38 -06:00
|
|
|
fn called(f: &fn(&int)) {
|
2012-09-26 03:47:21 -05:00
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() {
|
2012-09-26 03:47:21 -05:00
|
|
|
called(good);
|
|
|
|
}
|