]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-no-fg.stderr
Fix font color for help button in ayu and dark themes
[rust.git] / src / test / ui / async-await / multiple-lifetimes / ret-impl-trait-no-fg.stderr
1 error: ambiguous lifetime bound in `impl Trait`
2   --> $DIR/ret-impl-trait-no-fg.rs:9:64
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
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
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    |
28 LL | / async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> {
29 LL | |
30 LL | |
31 LL | |
32 ...  |
33 LL | |     (a, b)
34 LL | | }
35    | |_^
36    |
37    = note: hidden type `(&u8, &u8)` captures lifetime '_#5r
38
39 error[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    |
42 LL | / async fn async_ret_impl_trait<'a, 'b>(a: &'a u8, b: &'b u8) -> impl Trait<'a, 'b> {
43 LL | |
44 LL | |
45 LL | |
46 ...  |
47 LL | |     (a, b)
48 LL | | }
49    | |_^
50    |
51    = note: hidden type `(&u8, &u8)` captures lifetime '_#6r
52
53 error: aborting due to 5 previous errors
54
55 For more information about this error, try `rustc --explain E0700`.