fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 2 --> $DIR/ref-struct-async.rs:13:52 3 | 4LL | async fn ref_Struct(self: &Struct, 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-struct-async.rs:14:9 11 | 12LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 { 13 | - 14 | | 15 | lifetime `'_` defined here 16 | lifetime `'_` defined here 17LL | f 18 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 19 20error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 21 --> $DIR/ref-struct-async.rs:17:61 22 | 23LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 { 24 | ^^^^ 25 | 26 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 27 28error: lifetime may not live long enough 29 --> $DIR/ref-struct-async.rs:18:9 30 | 31LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 { 32 | - 33 | | 34 | lifetime `'_` defined here 35 | lifetime `'_` defined here 36LL | f 37 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 38 39error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 40 --> $DIR/ref-struct-async.rs:21:61 41 | 42LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 { 43 | ^^^^ 44 | 45 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 46 47error: lifetime may not live long enough 48 --> $DIR/ref-struct-async.rs:22:9 49 | 50LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 { 51 | - 52 | | 53 | lifetime `'_` defined here 54 | lifetime `'_` defined here 55LL | f 56 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 57 58error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 59 --> $DIR/ref-struct-async.rs:25:70 60 | 61LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 { 62 | ^^^^ 63 | 64 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 65 66error: lifetime may not live long enough 67 --> $DIR/ref-struct-async.rs:26:9 68 | 69LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 { 70 | - 71 | | 72 | lifetime `'_` defined here 73 | lifetime `'_` defined here 74LL | f 75 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 76 77error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 78 --> $DIR/ref-struct-async.rs:29:66 79 | 80LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 { 81 | ^^^^ 82 | 83 = note: hidden type `impl std::future::Future` captures lifetime '_#15r 84 85error: lifetime may not live long enough 86 --> $DIR/ref-struct-async.rs:30:9 87 | 88LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 { 89 | - 90 | | 91 | lifetime `'_` defined here 92 | lifetime `'_` defined here 93LL | f 94 | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_` 95 96error: aborting due to 10 previous errors 97 98For more information about this error, try `rustc --explain E0700`.