fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: ambiguous lifetime bound in `impl Trait` 2 --> $DIR/ret-impl-trait-no-fg.rs:9:64 3 | 4LL | async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { 5 | ^^^^^^^^^^^^^^^^^^ neither `'a` nor `'b` outlives the other 6 | 7 = help: add #![feature(member_constraints)] to the crate attributes to enable 8 9error: ambiguous lifetime bound in `impl Trait` 10 --> $DIR/ret-impl-trait-no-fg.rs:9:64 11 | 12LL | async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { 13 | ^^^^^^^^^^^^^^^^^^ neither `'a` nor `'b` outlives the other 14 | 15 = help: add #![feature(member_constraints)] to the crate attributes to enable 16 17error: ambiguous lifetime bound in `impl Trait` 18 --> $DIR/ret-impl-trait-no-fg.rs:9:64 19 | 20LL | async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { 21 | ^^^^^^^^^^^^^^^^^^ the elided lifetimes here do not outlive one another 22 | 23 = help: add #![feature(member_constraints)] to the crate attributes to enable 24 25error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 26 --> $DIR/ret-impl-trait-no-fg.rs:9:1 27 | 28LL | / async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { 29LL | | 30LL | | 31LL | | 32... | 33LL | | (a, b) 34LL | | } 35 | |_^ 36 | 37 = note: hidden type `(&u8, &u8)` captures lifetime '_#4r 38 39error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 40 --> $DIR/ret-impl-trait-no-fg.rs:9:1 41 | 42LL | / async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { 43LL | | 44LL | | 45LL | | 46... | 47LL | | (a, b) 48LL | | } 49 | |_^ 50 | 51 = note: hidden type `(&u8, &u8)` captures lifetime '_#5r 52 53error: aborting due to 5 previous errors 54 55For more information about this error, try `rustc --explain E0700`.