]> git.lizzy.rs Git - rust.git/commitdiff
fix run-make test
authorJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 04:33:35 +0000 (23:33 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Mon, 5 Jan 2015 22:22:17 +0000 (17:22 -0500)
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();
 }