]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/elision/ref-mut-self-async.stderr
d605bab463697e213c336ed43ef677f6e6f7ce72
[rust.git] / src / test / ui / self / elision / ref-mut-self-async.stderr
1 error[E0623]: lifetime mismatch
2   --> $DIR/ref-mut-self-async.rs:15:46
3    |
4 LL |     async fn ref_self(&mut 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-mut-self-async.rs:24:52
12    |
13 LL |     async fn ref_Self(self: &mut 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-mut-self-async.rs:28:61
21    |
22 LL |     async fn box_ref_Self(self: Box<&mut 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-mut-self-async.rs:32:61
30    |
31 LL |     async fn pin_ref_Self(self: Pin<&mut 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-mut-self-async.rs:36:70
39    |
40 LL |     async fn box_box_ref_Self(self: Box<Box<&mut 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-mut-self-async.rs:40:70
48    |
49 LL |     async fn box_pin_ref_Self(self: Box<Pin<&mut 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: aborting due to 6 previous errors
56