]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/elision/ref-self-async.stderr
e169f3cf6f1f70823469c1e37fa1b5f64908164b
[rust.git] / src / test / ui / self / elision / ref-self-async.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/ref-self-async.rs:24:42
3    |
4 LL |     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
10 error[E0623]: lifetime mismatch
11   --> $DIR/ref-self-async.rs:33:48
12    |
13 LL |     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
19 error[E0623]: lifetime mismatch
20   --> $DIR/ref-self-async.rs:37:57
21    |
22 LL |     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
28 error[E0623]: lifetime mismatch
29   --> $DIR/ref-self-async.rs:41:57
30    |
31 LL |     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
37 error[E0623]: lifetime mismatch
38   --> $DIR/ref-self-async.rs:45:66
39    |
40 LL |     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
46 error[E0623]: lifetime mismatch
47   --> $DIR/ref-self-async.rs:49:66
48    |
49 LL |     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
55 error[E0623]: lifetime mismatch
56   --> $DIR/ref-self-async.rs:53:69
57    |
58 LL |     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
64 error: aborting due to 7 previous errors
65