]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-one.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / async-await / multiple-lifetimes / ret-impl-trait-one.nll.stderr
1 error: lifetime may not live long enough
2 --> $DIR/ret-impl-trait-one.rs:12:80
3 |
4 LL | async fn async_ret_impl_trait1<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a> {
5 | ________________________________--__--__________________________________________^
6 | | | |
7 | | | lifetime `'b` defined here
8 | | lifetime `'a` defined here
9 LL | |
10 LL | | (a, b)
11 LL | | }
12 | |_^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
13 |
14 = help: consider adding the following bound: `'b: 'a`
15
16 error: aborting due to previous error
17