fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
622 B15 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
14error: aborting due to previous error
15