]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / projection-where-clause-env-wrong-bound.stderr
index 88253bad194c979be74a2594861b764fd4498bac..b4435fe06bccca5de87f1d50a99492fd9468cb19 100644 (file)
@@ -1,16 +1,11 @@
-error[E0309]: the associated type `<T as MyTrait<'a>>::Output` may not live long enough
+error[E0309]: the associated type `<T as MyTrait<'_>>::Output` may not live long enough
   --> $DIR/projection-where-clause-env-wrong-bound.rs:15:5
    |
 LL |     bar::<T::Output>()
    |     ^^^^^^^^^^^^^^^^
    |
-   = help: consider adding an explicit lifetime bound `<T as MyTrait<'a>>::Output: 'a`...
-   = note: ...so that the type `<T as MyTrait<'a>>::Output` will meet its required lifetime bounds...
-note: ...that is required by this bound
-  --> $DIR/projection-where-clause-env-wrong-bound.rs:29:8
-   |
-LL |     T: 'a,
-   |        ^^
+   = help: consider adding an explicit lifetime bound `<T as MyTrait<'_>>::Output: 'a`...
+   = note: ...so that the type `<T as MyTrait<'_>>::Output` will meet its required lifetime bounds
 
 error: aborting due to previous error