]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/regions-addr-of-upvar-self.rs
fix cfail tests
[rust.git] / src / test / compile-fail / regions-addr-of-upvar-self.rs
index 7a146c043c8389cfb776c42dc104be176c666f5e..fb60d8f7b27a4acb442fe0fcc7b3fafc3b5911d3 100644 (file)
@@ -16,7 +16,7 @@ struct dog {
 
 impl dog {
     pub fn chase_cat(&mut self) {
-        let _f = || {
+        let _f = |&:| {
             let p: &'static mut uint = &mut self.food; //~ ERROR cannot infer
             *p = 3u;
         };