about summary refs log tree commit diff
path: root/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/object-lifetime/object-lifetime-default-mybox.rs')
-rw-r--r--src/test/ui/object-lifetime/object-lifetime-default-mybox.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs b/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs
index 874556dafeb..5e6e5e2c063 100644
--- a/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs
+++ b/src/test/ui/object-lifetime/object-lifetime-default-mybox.rs
@@ -1,7 +1,3 @@
-// ignore-compare-mode-nll
-// revisions: base nll
-// [nll]compile-flags: -Zborrowck=mir
-
 // Test a "pass-through" object-lifetime-default that produces errors.
 
 #![allow(dead_code)]
@@ -29,14 +25,12 @@ fn load1<'a,'b>(a: &'a MyBox<dyn SomeTrait>,
                 -> &'b MyBox<dyn SomeTrait>
 {
     a
-    //[base]~^ ERROR lifetime mismatch
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn load2<'a>(ss: &MyBox<dyn SomeTrait + 'a>) -> MyBox<dyn SomeTrait + 'a> {
     load0(ss)
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR borrowed data escapes outside of function
+    //~^ ERROR borrowed data escapes outside of function
 }
 
 fn main() {