fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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