1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/ref-mut-self-async.rs:12:46
4 LL | async fn ref_self(&mut self, 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-self-async.rs:13:9
12 LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
13 | - - let's call the lifetime of this reference `'1`
15 | let's call the lifetime of this reference `'2`
17 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
19 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
20 --> $DIR/ref-mut-self-async.rs:18:52
22 LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
25 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
27 error: lifetime may not live long enough
28 --> $DIR/ref-mut-self-async.rs:19:9
30 LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
31 | - - let's call the lifetime of this reference `'1`
33 | let's call the lifetime of this reference `'2`
35 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
37 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
38 --> $DIR/ref-mut-self-async.rs:22:61
40 LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
43 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
45 error: lifetime may not live long enough
46 --> $DIR/ref-mut-self-async.rs:23:9
48 LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
49 | - - let's call the lifetime of this reference `'1`
51 | let's call the lifetime of this reference `'2`
53 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
55 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
56 --> $DIR/ref-mut-self-async.rs:26:61
58 LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
61 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
63 error: lifetime may not live long enough
64 --> $DIR/ref-mut-self-async.rs:27:9
66 LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
67 | - - let's call the lifetime of this reference `'1`
69 | let's call the lifetime of this reference `'2`
71 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
73 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
74 --> $DIR/ref-mut-self-async.rs:30:70
76 LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
79 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
81 error: lifetime may not live long enough
82 --> $DIR/ref-mut-self-async.rs:31:9
84 LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
85 | - - let's call the lifetime of this reference `'1`
87 | let's call the lifetime of this reference `'2`
89 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
91 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
92 --> $DIR/ref-mut-self-async.rs:34:70
94 LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
97 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
99 error: lifetime may not live long enough
100 --> $DIR/ref-mut-self-async.rs:35:9
102 LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
103 | - - let's call the lifetime of this reference `'1`
105 | let's call the lifetime of this reference `'2`
107 | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
109 error: aborting due to 12 previous errors
111 For more information about this error, try `rustc --explain E0700`.