2012-09-26 10:47:21 +02:00
|
|
|
fn good(a: &int) {
|
|
|
|
}
|
|
|
|
|
|
|
|
// unnamed argument &int is now parse x: &int
|
|
|
|
|
2013-03-07 14:38:38 -08: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() {
|
2012-09-26 10:47:21 +02:00
|
|
|
called(good);
|
|
|
|
}
|