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