]> git.proxmox.com Git - rustc.git/blob - src/test/ui/self/elision/lt-ref-self-async.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / self / elision / lt-ref-self-async.base.stderr
1 error[E0623]: lifetime mismatch
2 --> $DIR/lt-ref-self-async.rs:16:9
3 |
4 LL | async fn ref_self(&self, f: &u32) -> &u32 {
5 | ---- ----
6 | |
7 | this parameter and the return type are declared with different lifetimes...
8 LL | f
9 | ^ ...but data from `f` is returned here
10
11 error[E0623]: lifetime mismatch
12 --> $DIR/lt-ref-self-async.rs:24:9
13 |
14 LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
15 | ---- ----
16 | |
17 | this parameter and the return type are declared with different lifetimes...
18 LL | f
19 | ^ ...but data from `f` is returned here
20
21 error[E0623]: lifetime mismatch
22 --> $DIR/lt-ref-self-async.rs:30:9
23 |
24 LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
25 | ---- ----
26 | |
27 | this parameter and the return type are declared with different lifetimes...
28 LL | f
29 | ^ ...but data from `f` is returned here
30
31 error[E0623]: lifetime mismatch
32 --> $DIR/lt-ref-self-async.rs:36:9
33 |
34 LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
35 | ---- ----
36 | |
37 | this parameter and the return type are declared with different lifetimes...
38 LL | f
39 | ^ ...but data from `f` is returned here
40
41 error[E0623]: lifetime mismatch
42 --> $DIR/lt-ref-self-async.rs:42:9
43 |
44 LL | async 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...
48 LL | f
49 | ^ ...but data from `f` is returned here
50
51 error[E0623]: lifetime mismatch
52 --> $DIR/lt-ref-self-async.rs:48:9
53 |
54 LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
55 | ---- ----
56 | |
57 | this parameter and the return type are declared with different lifetimes...
58 LL | f
59 | ^ ...but data from `f` is returned here
60
61 error: aborting due to 6 previous errors
62
63 For more information about this error, try `rustc --explain E0623`.