]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/multiple-lifetimes/ret-impl-trait-no-fg.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / async-await / multiple-lifetimes / ret-impl-trait-no-fg.stderr
CommitLineData
dc9dc135 1error: ambiguous lifetime bound in `impl Trait`
e1599b0c 2 --> $DIR/ret-impl-trait-no-fg.rs:9:64
dc9dc135
XL
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
dfeec247
XL
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
ba9703b0
XL
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 |
3dfed10e
XL
28LL | 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
33error[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
36LL | 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
41error: aborting due to 5 previous errors
dc9dc135 42
ba9703b0 43For more information about this error, try `rustc --explain E0700`.