about summary refs log tree commit diff
path: root/src/test/ui/variance/variance-contravariant-arg-trait-match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/variance/variance-contravariant-arg-trait-match.rs')
-rw-r--r--src/test/ui/variance/variance-contravariant-arg-trait-match.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/ui/variance/variance-contravariant-arg-trait-match.rs b/src/test/ui/variance/variance-contravariant-arg-trait-match.rs
index 11513d5411c..e0b28010561 100644
--- a/src/test/ui/variance/variance-contravariant-arg-trait-match.rs
+++ b/src/test/ui/variance/variance-contravariant-arg-trait-match.rs
@@ -3,10 +3,6 @@
 // Test that even when `T` is only used in contravariant position, it
 // is treated as invariant.
 
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 trait Get<T> {
     fn get(&self, t: T);
 }
@@ -15,8 +11,7 @@ fn get_min_from_max<'min, 'max, G>()
     where 'max : 'min, G : Get<&'max i32>
 {
     impls_get::<G,&'min i32>()
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn get_max_from_min<'min, 'max, G>()
@@ -25,8 +20,7 @@ fn get_max_from_min<'min, 'max, G>()
     // Previously OK, but now an error because traits are invariant:
 
     impls_get::<G,&'max i32>()
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn impls_get<G,T>() where G : Get<T> { }