]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-make/static-unwinding/lib.rs
fix run-make test
[rust.git] / src / test / run-make / static-unwinding / lib.rs
index 5e75e1cd1cbdcfa701237d14d46bb65ec307430e..c3fa1a68e164c4e491909effa259f37813083f82 100644 (file)
@@ -19,7 +19,7 @@ fn drop(&mut self) {
     }
 }
 
-pub fn callback(f: ||) {
+pub fn callback<F>(f: F) where F: FnOnce() {
     let _a = A;
     f();
 }