]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-10291.rs
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-10291.rs
index 8ee3ce44d3d9e78cae3ac1a543afdfb9c6a5ae17..31b9e1240461eafe32719de2908edc99888fcf11 100644 (file)
@@ -1,12 +1,7 @@
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 fn test<'x>(x: &'x isize) {
     drop::<Box<dyn for<'z> FnMut(&'z isize) -> &'z isize>>(Box::new(|z| {
         x
-        //[base]~^ ERROR E0312
-        //[nll]~^^ ERROR lifetime may not live long enough
+        //~^ ERROR lifetime may not live long enough
     }));
 }