fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
3.0 KiB72 linesraw
1error[E0623]: lifetime mismatch
2  --> $DIR/ref-self.rs:21:9
3   |
4LL |     fn ref_self(&self, 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-self.rs:27:9
13   |
14LL |     fn ref_Self(self: &Self, 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-self.rs:31:9
23   |
24LL |     fn box_ref_Self(self: Box<&Self>, 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-self.rs:35:9
33   |
34LL |     fn pin_ref_Self(self: Pin<&Self>, 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-self.rs:39:9
43   |
44LL |     fn box_box_ref_Self(self: Box<Box<&Self>>, 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[E0623]: lifetime mismatch
52  --> $DIR/ref-self.rs:43:9
53   |
54LL |     fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
55   |                                                   ----     ----
56   |                                                   |
57   |                                                   this parameter and the return type are declared with different lifetimes...
58LL |         f
59   |         ^ ...but data from `f` is returned here
60
61error[E0623]: lifetime mismatch
62  --> $DIR/ref-self.rs:47:9
63   |
64LL |     fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
65   |                                                       ---     ---
66   |                                                       |
67   |                                                       this parameter and the return type are declared with different lifetimes...
68LL |         f
69   |         ^ ...but data from `f` is returned here
70
71error: aborting due to 7 previous errors
72