]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.nll.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / async-await / multiple-lifetimes / ret-impl-trait-one.nll.stderr
index 2722c72c20a339a485453316d57e3382d39f4f7d..cdb141c0e3ea2802c7efd1d6a3a368d832b5e64e 100644 (file)
@@ -14,12 +14,16 @@ LL | | }
    = help: consider adding the following bound: `'a: 'b`
 
 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
-  --> $DIR/ret-impl-trait-one.rs:16:65
+  --> $DIR/ret-impl-trait-one.rs:16:80
    |
-LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a> {
-   |                                    --                           ^^^^^^^^^^^^^^
-   |                                    |
-   |                                    hidden type `(&'a u8, &'b u8)` captures the lifetime `'b` as defined here
+LL |   async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a> {
+   |  ____________________________________--__________________________________________^
+   | |                                    |
+   | |                                    hidden type `(&'a u8, &'b u8)` captures the lifetime `'b` as defined here
+LL | |
+LL | |     (a, b)
+LL | | }
+   | |_^
    |
 help: to declare that the `impl Trait` captures `'b`, you can add an explicit `'b` lifetime bound
    |