]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/ty-outlives/projection-where-clause-env-wrong-bound.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / projection-where-clause-env-wrong-bound.stderr
index eba00c5a9454e613a5d7cb9cf0ead5d1b6b36d35..88253bad194c979be74a2594861b764fd4498bac 100644 (file)
@@ -5,7 +5,12 @@ 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: ...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,
+   |        ^^
 
 error: aborting due to previous error