]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/generic-associated-types/self-outlives-lint.stderr
Make the GATS self outlives error take into GATs in the inputs
[rust.git] / src / test / ui / generic-associated-types / self-outlives-lint.stderr
index fdb1f50a7764c94d3e61b83ee87851107fc48929..a43b35bd79c95977c55befb57b9df408a6a40905 100644 (file)
@@ -163,5 +163,16 @@ LL |     type Fut<'out>;
    = note: this bound is currently required to ensure that impls have maximum flexibility
    = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
 
-error: aborting due to 15 previous errors
+error: missing required bound on `Item`
+  --> $DIR/self-outlives-lint.rs:215:5
+   |
+LL |     type Item<'a>;
+   |     ^^^^^^^^^^^^^-
+   |                  |
+   |                  help: add the required where clause: `where Self: 'a`
+   |
+   = note: this bound is currently required to ensure that impls have maximum flexibility
+   = note: we are soliciting feedback, see issue #87479 <https://github.com/rust-lang/rust/issues/87479> for more information
+
+error: aborting due to 16 previous errors