]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/regions-escape-bound-fn-2.rs
fix cfail tests
[rust.git] / src / test / compile-fail / regions-escape-bound-fn-2.rs
index 66103eb95888ac941e1cf123c8641d2b0978c584..547accbf0860d27ce85d7b65aedc27f0c709123d 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn with_int(f: |x: &int|) {
+fn with_int<F>(f: F) where F: FnOnce(&int) {
     let x = 3;
     f(&x);
 }