]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-lifetime.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / projection-where-clause-env-wrong-lifetime.rs
index 9e3590ca7154588a672a88c3a38ea69f1f6986f3..987148dcefb0c869d5a1d7dfd5df14abd4f624df 100644 (file)
@@ -12,7 +12,7 @@ where
     <T as MyTrait<'b>>::Output: 'a,
 {
     bar::<<T as MyTrait<'a>>::Output>()
-    //~^ ERROR the associated type `<T as MyTrait<'a>>::Output` may not live long enough
+    //~^ ERROR the associated type `<T as MyTrait<'_>>::Output` may not live long enough
 }
 
 fn bar<'a, T>() -> &'a ()