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