We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5b045 commit d6a948eCopy full SHA for d6a948e
src/test/run-make/static-unwinding/lib.rs
@@ -19,7 +19,7 @@ impl Drop for A {
19
}
20
21
22
-pub fn callback(f: ||) {
+pub fn callback<F>(f: F) where F: FnOnce() {
23
let _a = A;
24
f();
25
0 commit comments