fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
3.4 KiB65 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/ref-self-async.rs:22:42
3   |
4LL |     async fn ref_self(&self, 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-self-async.rs:28:48
12   |
13LL |     async fn ref_Self(self: &Self, 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-self-async.rs:32:57
21   |
22LL |     async fn box_ref_Self(self: Box<&Self>, 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-self-async.rs:36:57
30   |
31LL |     async fn pin_ref_Self(self: Pin<&Self>, 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-self-async.rs:40:66
39   |
40LL |     async fn box_box_ref_Self(self: Box<Box<&Self>>, 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[E0623]: lifetime mismatch
47  --> $DIR/ref-self-async.rs:44:66
48   |
49LL |     async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
50   |                                             -----                ^^^^
51   |                                             |                    |
52   |                                             |                    ...but data from `f` is returned here
53   |                                             this parameter and the return type are declared with different lifetimes...
54
55error[E0623]: lifetime mismatch
56  --> $DIR/ref-self-async.rs:48:69
57   |
58LL |     async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
59   |                                            -----                    ^^^
60   |                                            |                        |
61   |                                            |                        ...but data from `f` is returned here
62   |                                            this parameter and the return type are declared with different lifetimes...
63
64error: aborting due to 7 previous errors
65