]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-addr-of-upvar-self.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-addr-of-upvar-self.rs
index 36cc592d47c93e98bc2ff80b6cbc20d272325baa..171eca32e296005fe21dfae1edb59ae662ff12d6 100644 (file)
@@ -1,7 +1,3 @@
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 struct Dog {
     food: usize,
 }
@@ -10,10 +6,9 @@ impl Dog {
     pub fn chase_cat(&mut self) {
         let _f = || {
             let p: &'static mut usize = &mut self.food;
-            //[base]~^ ERROR cannot infer
-            //[nll]~^^ ERROR lifetime may not live long enough
-            //[nll]~^^^ ERROR lifetime may not live long enough
-            //[nll]~^^^^ ERROR E0597
+            //~^ ERROR lifetime may not live long enough
+            //~^^ ERROR lifetime may not live long enough
+            //~^^^ ERROR E0597
             *p = 3;
         };
     }