]>
Commit | Line | Data |
---|---|---|
e1599b0c | 1 | error[E0623]: lifetime mismatch |
60c5eb7d | 2 | --> $DIR/ref-mut-struct-async.rs:13:9 |
e1599b0c XL |
3 | | |
4 | LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 { | |
5099ac24 FG |
5 | | ---- ---- |
6 | | | | |
7 | | this parameter and the return type are declared with different lifetimes... | |
e74abb32 | 8 | LL | f |
5099ac24 | 9 | | ^ ...but data from `f` is returned here |
e1599b0c XL |
10 | |
11 | error[E0623]: lifetime mismatch | |
60c5eb7d | 12 | --> $DIR/ref-mut-struct-async.rs:17:9 |
e1599b0c XL |
13 | | |
14 | LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 { | |
5099ac24 FG |
15 | | ---- ---- |
16 | | | | |
17 | | this parameter and the return type are declared with different lifetimes... | |
e74abb32 | 18 | LL | f |
5099ac24 | 19 | | ^ ...but data from `f` is returned here |
e1599b0c XL |
20 | |
21 | error[E0623]: lifetime mismatch | |
60c5eb7d | 22 | --> $DIR/ref-mut-struct-async.rs:21:9 |
e1599b0c XL |
23 | | |
24 | LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 { | |
5099ac24 FG |
25 | | ---- ---- |
26 | | | | |
27 | | this parameter and the return type are declared with different lifetimes... | |
e74abb32 | 28 | LL | f |
5099ac24 | 29 | | ^ ...but data from `f` is returned here |
e1599b0c XL |
30 | |
31 | error[E0623]: lifetime mismatch | |
60c5eb7d | 32 | --> $DIR/ref-mut-struct-async.rs:25:9 |
e1599b0c XL |
33 | | |
34 | LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 { | |
5099ac24 FG |
35 | | ---- ---- |
36 | | | | |
37 | | this parameter and the return type are declared with different lifetimes... | |
e74abb32 | 38 | LL | f |
5099ac24 | 39 | | ^ ...but data from `f` is returned here |
e1599b0c XL |
40 | |
41 | error[E0623]: lifetime mismatch | |
60c5eb7d | 42 | --> $DIR/ref-mut-struct-async.rs:29:9 |
e1599b0c XL |
43 | | |
44 | LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 { | |
5099ac24 FG |
45 | | ---- ---- |
46 | | | | |
47 | | this parameter and the return type are declared with different lifetimes... | |
e74abb32 | 48 | LL | f |
5099ac24 | 49 | | ^ ...but data from `f` is returned here |
e1599b0c XL |
50 | |
51 | error: aborting due to 5 previous errors | |
52 | ||
60c5eb7d | 53 | For more information about this error, try `rustc --explain E0623`. |