]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.stderr
Rollup merge of #85663 - fee1-dead:document-arc-from, r=m-ou-se
[rust.git] / src / test / ui / async-await / multiple-lifetimes / ret-impl-trait-one.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/ret-impl-trait-one.rs:10:65
3    |
4 LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a> {
5    |                                           ------                ^^^^^^^^^^^^^^
6    |                                           |                     |
7    |                                           |                     ...but data from `b` is held across an await point here
8    |                                           |                     this `async fn` implicitly returns an `impl Future<Output = impl Trait<'a>>`
9    |                                           this parameter and the returned future are declared with different lifetimes...
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0623`.