]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/ty-outlives/projection-no-regions-closure.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / nll / ty-outlives / projection-no-regions-closure.stderr
index 983d6a06afada75c7edffd8500d13cacbf15bc7b..8fe25181da1a035c8a7572ee0cebd352861123f7 100644 (file)
@@ -33,6 +33,7 @@ LL |     with_signature(x, |mut y| Box::new(y.next()))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
+   = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
 
 note: external requirements
   --> $DIR/projection-no-regions-closure.rs:34:23
@@ -96,6 +97,7 @@ LL |     with_signature(x, |mut y| Box::new(y.next()))
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
+   = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
 
 note: external requirements
   --> $DIR/projection-no-regions-closure.rs:52:23