]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/regions/regions-assoc-type-in-supertrait-outlives-container.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / regions / regions-assoc-type-in-supertrait-outlives-container.rs
index 08bc64926fac365247fa73e9b3a78064c3f1f009..eb6e66818fc341f593d3fc8fd4372108a5c30377 100644 (file)
@@ -3,14 +3,6 @@
 // outlive the location in which the type appears, even when the
 // associted type is in a supertype. Issue #22246.
 
-// revisions: migrate nll
-//[nll]compile-flags: -Z borrowck=mir
-
-// Since we are testing nll (and migration) explicitly as a separate
-// revisions, don't worry about the --compare-mode=nll on this test.
-
-// ignore-compare-mode-nll
-
 #![allow(dead_code)]
 
 pub trait TheTrait {
@@ -42,8 +34,7 @@ fn with_assoc<'a,'b>() {
     // which is &'b (), must outlive 'a.
 
     let _: &'a WithAssoc<TheType<'b>> = loop { };
-    //[migrate]~^ ERROR reference has a longer lifetime
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn main() {