diff --git a/src/test/run-make/static-unwinding/lib.rs b/src/test/run-make/static-unwinding/lib.rs index 5e75e1cd1cb..c3fa1a68e16 100644 --- a/src/test/run-make/static-unwinding/lib.rs +++ b/src/test/run-make/static-unwinding/lib.rs @@ -19,7 +19,7 @@ impl Drop for A { } } -pub fn callback(f: ||) { +pub fn callback(f: F) where F: FnOnce() { let _a = A; f(); }