]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error: ambiguous lifetime bound in `impl Trait` |
e1599b0c | 2 | --> $DIR/ret-impl-trait-no-fg.rs:9:64 |
dc9dc135 XL |
3 | | |
4 | LL | 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 | ||
dfeec247 XL |
9 | error: ambiguous lifetime bound in `impl Trait` |
10 | --> $DIR/ret-impl-trait-no-fg.rs:9:64 | |
11 | | | |
12 | LL | 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 | ||
ba9703b0 XL |
17 | error: ambiguous lifetime bound in `impl Trait` |
18 | --> $DIR/ret-impl-trait-no-fg.rs:9:64 | |
19 | | | |
20 | LL | 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 | ||
25 | error[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 | | | |
3dfed10e XL |
28 | LL | async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { |
29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 30 | | |
f9f354fc | 31 | = note: hidden type `(&u8, &u8)` captures lifetime '_#5r |
ba9703b0 XL |
32 | |
33 | error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds | |
34 | --> $DIR/ret-impl-trait-no-fg.rs:9:1 | |
35 | | | |
3dfed10e XL |
36 | LL | async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> { |
37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ba9703b0 | 38 | | |
f9f354fc | 39 | = note: hidden type `(&u8, &u8)` captures lifetime '_#6r |
ba9703b0 XL |
40 | |
41 | error: aborting due to 5 previous errors | |
dc9dc135 | 42 | |
ba9703b0 | 43 | For more information about this error, try `rustc --explain E0700`. |