1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/ref-mut-struct-async.rs:13:56
4 LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
7 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
9 error: lifetime may not live long enough
10 --> $DIR/ref-mut-struct-async.rs:14:9
12 LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
15 | lifetime `'_` defined here
16 | lifetime `'_` defined here
18 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
20 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
21 --> $DIR/ref-mut-struct-async.rs:17:65
23 LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
26 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
28 error: lifetime may not live long enough
29 --> $DIR/ref-mut-struct-async.rs:18:9
31 LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
34 | lifetime `'_` defined here
35 | lifetime `'_` defined here
37 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
39 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
40 --> $DIR/ref-mut-struct-async.rs:21:65
42 LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
45 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
47 error: lifetime may not live long enough
48 --> $DIR/ref-mut-struct-async.rs:22:9
50 LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
53 | lifetime `'_` defined here
54 | lifetime `'_` defined here
56 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
58 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
59 --> $DIR/ref-mut-struct-async.rs:25:74
61 LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
64 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
66 error: lifetime may not live long enough
67 --> $DIR/ref-mut-struct-async.rs:26:9
69 LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
72 | lifetime `'_` defined here
73 | lifetime `'_` defined here
75 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
77 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
78 --> $DIR/ref-mut-struct-async.rs:29:74
80 LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
83 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
85 error: lifetime may not live long enough
86 --> $DIR/ref-mut-struct-async.rs:30:9
88 LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
91 | lifetime `'_` defined here
92 | lifetime `'_` defined here
94 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
96 error: aborting due to 10 previous errors
98 For more information about this error, try `rustc --explain E0700`.