fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 2 --> $DIR/ref-mut-self-async.rs:13:46 3 | 4LL | async fn ref_self(&mut self, f: &u32) -> &u32 { 5 | ^^^^ 6 | 7 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 8 9error: lifetime may not live long enough 10 --> $DIR/ref-mut-self-async.rs:13:51 11 | 12LL | async fn ref_self(&mut self, f: &u32) -> &u32 { 13 | _______________________-___________________________^ 14 | | | 15 | | lifetime `'_` defined here 16 | | lifetime `'_` defined here 17LL | | f 18LL | | } 19 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 20 21error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 22 --> $DIR/ref-mut-self-async.rs:19:52 23 | 24LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 { 25 | ^^^^ 26 | 27 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 28 29error: lifetime may not live long enough 30 --> $DIR/ref-mut-self-async.rs:19:57 31 | 32LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 { 33 | _____________________________-___________________________^ 34 | | | 35 | | lifetime `'_` defined here 36 | | lifetime `'_` defined here 37LL | | f 38LL | | } 39 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 40 41error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 42 --> $DIR/ref-mut-self-async.rs:23:61 43 | 44LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 { 45 | ^^^^ 46 | 47 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 48 49error: lifetime may not live long enough 50 --> $DIR/ref-mut-self-async.rs:23:66 51 | 52LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 { 53 | _____________________________________-____________________________^ 54 | | | 55 | | lifetime `'_` defined here 56 | | lifetime `'_` defined here 57LL | | f 58LL | | } 59 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 60 61error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 62 --> $DIR/ref-mut-self-async.rs:27:61 63 | 64LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 { 65 | ^^^^ 66 | 67 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 68 69error: lifetime may not live long enough 70 --> $DIR/ref-mut-self-async.rs:27:66 71 | 72LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 { 73 | _____________________________________-____________________________^ 74 | | | 75 | | lifetime `'_` defined here 76 | | lifetime `'_` defined here 77LL | | f 78LL | | } 79 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 80 81error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 82 --> $DIR/ref-mut-self-async.rs:31:70 83 | 84LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 { 85 | ^^^^ 86 | 87 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 88 89error: lifetime may not live long enough 90 --> $DIR/ref-mut-self-async.rs:31:75 91 | 92LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 { 93 | _____________________________________________-_____________________________^ 94 | | | 95 | | lifetime `'_` defined here 96 | | lifetime `'_` defined here 97LL | | f 98LL | | } 99 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 100 101error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 102 --> $DIR/ref-mut-self-async.rs:35:70 103 | 104LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 { 105 | ^^^^ 106 | 107 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 108 109error: lifetime may not live long enough 110 --> $DIR/ref-mut-self-async.rs:35:75 111 | 112LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 { 113 | _____________________________________________-_____________________________^ 114 | | | 115 | | lifetime `'_` defined here 116 | | lifetime `'_` defined here 117LL | | f 118LL | | } 119 | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 120 121error: aborting due to 12 previous errors 122 123For more information about this error, try `rustc --explain E0700`.