]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/elision/lt-ref-self-async.stderr
New upstream version 1.40.0+dfsg1
[rustc.git] / src / test / ui / self / elision / lt-ref-self-async.stderr
CommitLineData
e1599b0c 1error[E0623]: lifetime mismatch
e74abb32 2 --> $DIR/lt-ref-self-async.rs:14: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
e74abb32 12 --> $DIR/lt-ref-self-async.rs:20: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
e74abb32 22 --> $DIR/lt-ref-self-async.rs:24: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
e74abb32 32 --> $DIR/lt-ref-self-async.rs:28: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
e74abb32 42 --> $DIR/lt-ref-self-async.rs:32: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
e74abb32 52 --> $DIR/lt-ref-self-async.rs:36:9
e1599b0c
XL
53 |
54LL | async fn box_pin_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: aborting due to 6 previous errors
62