-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Description
fn action(cb: Box<FnOnce(uint) -> uint>) -> uint {
cb(1)
}
pub fn main() {
println!("num: {}", action(|u| u));
}
output:
$ rustc fnonce.rs
fnonce.rs:1:25: 1:26 error: expected `,`, found `(`
fnonce.rs:1 fn action(cb: Box<FnOnce(uint) -> uint>) -> uint {
/cc @pcwalton
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.