fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0623]: lifetime mismatch 2 --> $DIR/ref-struct-async.rs:13:52 3 | 4LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 { 5 | ------- ^^^^ 6 | | | 7 | | ...but data from `f` is returned here 8 | this parameter and the return type are declared with different lifetimes... 9 10error[E0623]: lifetime mismatch 11 --> $DIR/ref-struct-async.rs:17:61 12 | 13LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 { 14 | ------- ^^^^ 15 | | | 16 | | ...but data from `f` is returned here 17 | this parameter and the return type are declared with different lifetimes... 18 19error[E0623]: lifetime mismatch 20 --> $DIR/ref-struct-async.rs:21:61 21 | 22LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 { 23 | ------- ^^^^ 24 | | | 25 | | ...but data from `f` is returned here 26 | this parameter and the return type are declared with different lifetimes... 27 28error[E0623]: lifetime mismatch 29 --> $DIR/ref-struct-async.rs:25:70 30 | 31LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 { 32 | ------- ^^^^ 33 | | | 34 | | ...but data from `f` is returned here 35 | this parameter and the return type are declared with different lifetimes... 36 37error[E0623]: lifetime mismatch 38 --> $DIR/ref-struct-async.rs:29:66 39 | 40LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 { 41 | ------- ^^^^ 42 | | | 43 | | ...but data from `f` is returned here 44 | this parameter and the return type are declared with different lifetimes... 45 46error: aborting due to 5 previous errors 47