2013-08-17 08:37:42 -07:00
|
|
|
fn good(_a: &int) {
|
2012-09-26 10:47:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// unnamed argument &int is now parse x: &int
|
|
|
|
|
2013-08-17 08:37:42 -07:00
|
|
|
fn called(_f: &fn(&int)) {
|
2012-09-26 10:47:21 +02:00
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2013-08-17 08:37:42 -07:00
|
|
|
called(good);
|
2012-09-26 10:47:21 +02:00
|
|
|
}
|