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/lt-ref-self-async.rs:13:42 3 | 4LL | async fn ref_self(&self, f: &u32) -> &u32 { 5 | ^^^^ 6 | 7 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 8 9error: lifetime may not live long enough 10 --> $DIR/lt-ref-self-async.rs:13:47 11 | 12LL | async fn ref_self(&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/lt-ref-self-async.rs:19:48 23 | 24LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 { 25 | ^^^^ 26 | 27 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 28 29error: lifetime may not live long enough 30 --> $DIR/lt-ref-self-async.rs:19:53 31 | 32LL | async fn ref_Self(self: &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/lt-ref-self-async.rs:23:57 43 | 44LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 { 45 | ^^^^ 46 | 47 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 48 49error: lifetime may not live long enough 50 --> $DIR/lt-ref-self-async.rs:23:62 51 | 52LL | async fn box_ref_Self(self: Box<&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/lt-ref-self-async.rs:27:57 63 | 64LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 { 65 | ^^^^ 66 | 67 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 68 69error: lifetime may not live long enough 70 --> $DIR/lt-ref-self-async.rs:27:62 71 | 72LL | async fn pin_ref_Self(self: Pin<&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/lt-ref-self-async.rs:31:66 83 | 84LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 { 85 | ^^^^ 86 | 87 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 88 89error: lifetime may not live long enough 90 --> $DIR/lt-ref-self-async.rs:31:71 91 | 92LL | async fn box_box_ref_Self(self: Box<Box<&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/lt-ref-self-async.rs:35:62 103 | 104LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 { 105 | ^^^^ 106 | 107 = note: hidden type `impl std::future::Future` captures lifetime '_#23r 108 109error: lifetime may not live long enough 110 --> $DIR/lt-ref-self-async.rs:35:67 111 | 112LL | async fn box_pin_Self(self: Box<Pin<&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`.