rust/src/test/run-pass/unnamed_argument_mode.rs

12 lines
136 B
Rust
Raw Normal View History

2013-08-17 08:37:42 -07:00
fn good(_a: &int) {
}
// unnamed argument &int is now parse x: &int
2013-08-17 08:37:42 -07:00
fn called(_f: &fn(&int)) {
}
pub fn main() {
2013-08-17 08:37:42 -07:00
called(good);
}