]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-ret-borrowed-1.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-ret-borrowed-1.rs
index fed631320b44270aadafd73d223d3ad3988e8ae5..54630caffb4c66fe3a97b11eb2d816f06cec5898 100644 (file)
@@ -2,18 +2,13 @@
 // some point regions-ret-borrowed reported an error but this file did
 // not, due to special hardcoding around the anonymous region.
 
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 fn with<R, F>(f: F) -> R where F: for<'a> FnOnce(&'a isize) -> R {
     f(&3)
 }
 
 fn return_it<'a>() -> &'a isize {
     with(|o| o)
-    //[base]~^ ERROR cannot infer an appropriate lifetime due to conflicting requirements [E0495]
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn main() {