1 error[E0623]: lifetime mismatch
2 --> $DIR/lt-ref-self.rs:12:9
4 LL | fn ref_self(&self, f: &u32) -> &u32 {
7 | this parameter and the return type are declared with different lifetimes...
9 | ^ ...but data from `f` is returned here
11 error[E0623]: lifetime mismatch
12 --> $DIR/lt-ref-self.rs:18:9
14 LL | fn ref_Self(self: &Self, f: &u32) -> &u32 {
17 | this parameter and the return type are declared with different lifetimes...
19 | ^ ...but data from `f` is returned here
21 error[E0623]: lifetime mismatch
22 --> $DIR/lt-ref-self.rs:22:9
24 LL | fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
27 | this parameter and the return type are declared with different lifetimes...
29 | ^ ...but data from `f` is returned here
31 error[E0623]: lifetime mismatch
32 --> $DIR/lt-ref-self.rs:26:9
34 LL | fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
37 | this parameter and the return type are declared with different lifetimes...
39 | ^ ...but data from `f` is returned here
41 error[E0623]: lifetime mismatch
42 --> $DIR/lt-ref-self.rs:30:9
44 LL | fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
47 | this parameter and the return type are declared with different lifetimes...
49 | ^ ...but data from `f` is returned here
51 error[E0623]: lifetime mismatch
52 --> $DIR/lt-ref-self.rs:34:9
54 LL | fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
57 | this parameter and the return type are declared with different lifetimes...
59 | ^ ...but data from `f` is returned here
61 error: aborting due to 6 previous errors