]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/variance/variance-invariant-self-trait-match.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / variance / variance-invariant-self-trait-match.rs
index 0f3176b14b44d1f3fae2cdf1ca4d84a859bbafef..95c4c24032c473791fc037de6d341356563de55b 100644 (file)
@@ -1,9 +1,5 @@
 #![allow(dead_code)]
 
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 trait Get {
     fn get(&self) -> Self;
 }
@@ -12,16 +8,14 @@ fn get_min_from_max<'min, 'max, G>()
     where 'max : 'min, &'max G : Get, G : 'max
 {
     impls_get::<&'min G>();
-    //[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>()
     where 'max : 'min, &'min G : Get, G : 'min
 {
     impls_get::<&'max G>();
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn impls_get<G>() where G : Get { }