]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-5216.rs
fix cfail tests
[rust.git] / src / test / compile-fail / issue-5216.rs
index 18af9736ed9f8408224d80d0c78095a9d1e0a189..fef414ce978a8756e263cc821d6035950611033d 100644 (file)
@@ -9,12 +9,12 @@
 // except according to those terms.
 
 fn f() { }
-struct S(||); //~ ERROR explicit lifetime bound required
+struct S(Box<FnMut()>); //~ ERROR explicit lifetime bound required
 pub static C: S = S(f);
 
 
 fn g() { }
-type T = ||;  //~ ERROR explicit lifetime bound required
+type T = Box<FnMut()>;  //~ ERROR explicit lifetime bound required
 pub static D: T = g;
 
 fn main() {}