about summary refs log tree commit diff
path: root/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs')
-rw-r--r--src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs b/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs
index 5d868a58c0f..ff27011f89e 100644
--- a/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs
+++ b/src/test/ui/suggestions/lifetimes/trait-object-nested-in-impl-trait.rs
@@ -1,7 +1,3 @@
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 trait Foo {}
 impl<'a, T: Foo> Foo for &'a T {}
 impl<T: Foo + ?Sized> Foo for Box<T> {}
@@ -30,10 +26,9 @@ struct Bar(Vec<Box<dyn Foo>>);
 impl Bar {
     fn iter(&self) -> impl Iterator<Item = Box<dyn Foo>> {
         Iter {
-            //[nll]~^ ERROR lifetime may not live long enough
+            //~^ ERROR lifetime may not live long enough
             current: None,
             remaining: self.0.iter(),
-            //[base]~^ ERROR E0759
         }
     }
 }
@@ -43,10 +38,9 @@ struct Baz(Vec<Box<dyn Foo>>);
 impl Baz {
     fn iter(&self) -> impl Iterator<Item = Box<dyn Foo>> + '_ {
         Iter {
-            //[nll]~^ ERROR lifetime may not live long enough
+            //~^ ERROR lifetime may not live long enough
             current: None,
             remaining: self.0.iter(),
-            //[base]~^ ERROR E0759
         }
     }
 }
@@ -56,10 +50,9 @@ struct Bat(Vec<Box<dyn Foo>>);
 impl Bat {
     fn iter<'a>(&'a self) -> impl Iterator<Item = Box<dyn Foo>> + 'a {
         Iter {
-            //[nll]~^ ERROR lifetime may not live long enough
+            //~^ ERROR lifetime may not live long enough
             current: None,
             remaining: self.0.iter(),
-            //[base]~^ ERROR E0759
         }
     }
 }
@@ -69,10 +62,9 @@ struct Ban(Vec<Box<dyn Foo>>);
 impl Ban {
     fn iter<'a>(&'a self) -> impl Iterator<Item = Box<dyn Foo>> {
         Iter {
-            //[nll]~^ ERROR lifetime may not live long enough
+            //~^ ERROR lifetime may not live long enough
             current: None,
             remaining: self.0.iter(),
-            //[base]~^ ERROR E0759
         }
     }
 }