]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-proc-bound-capture.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-proc-bound-capture.rs
index 1033163c8dd9c10d6df82f43729b7b9ca8defa64..f79d9dc909f8a84cd2312e725045610b2c3ada50 100644 (file)
@@ -1,7 +1,3 @@
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 fn borrowed_proc<'a>(x: &'a isize) -> Box<dyn FnMut()->(isize) + 'a> {
     // This is legal, because the region bound on `proc`
     // states that it captures `x`.
@@ -11,8 +7,7 @@ fn borrowed_proc<'a>(x: &'a isize) -> Box<dyn FnMut()->(isize) + 'a> {
 fn static_proc(x: &isize) -> Box<dyn FnMut() -> (isize) + 'static> {
     // This is illegal, because the region bound on `proc` is 'static.
     Box::new(move || { *x })
-    //[base]~^ ERROR E0759
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn main() { }