fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
684 B17 linesraw
1error: lifetime may not live long enough
2  --> $DIR/ret-impl-trait-one.rs:12:80
3   |
4LL |   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
9LL | |
10LL | |     (a, b)
11LL | | }
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
16error: aborting due to previous error
17