]> git.proxmox.com Git - rustc.git/blame - src/test/ui/self/elision/ref-struct-async.base.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / self / elision / ref-struct-async.base.stderr
CommitLineData
e1599b0c 1error[E0623]: lifetime mismatch
04454e1e 2 --> $DIR/ref-struct-async.rs:16:9
e1599b0c
XL
3 |
4LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
5099ac24
FG
5 | ---- ----
6 | |
7 | this parameter and the return type are declared with different lifetimes...
e74abb32 8LL | f
5099ac24 9 | ^ ...but data from `f` is returned here
e1599b0c
XL
10
11error[E0623]: lifetime mismatch
04454e1e 12 --> $DIR/ref-struct-async.rs:22:9
e1599b0c
XL
13 |
14LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
5099ac24
FG
15 | ---- ----
16 | |
17 | this parameter and the return type are declared with different lifetimes...
e74abb32 18LL | f
5099ac24 19 | ^ ...but data from `f` is returned here
e1599b0c
XL
20
21error[E0623]: lifetime mismatch
04454e1e 22 --> $DIR/ref-struct-async.rs:28:9
e1599b0c
XL
23 |
24LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
5099ac24
FG
25 | ---- ----
26 | |
27 | this parameter and the return type are declared with different lifetimes...
e74abb32 28LL | f
5099ac24 29 | ^ ...but data from `f` is returned here
e1599b0c
XL
30
31error[E0623]: lifetime mismatch
04454e1e 32 --> $DIR/ref-struct-async.rs:34:9
e1599b0c
XL
33 |
34LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
5099ac24
FG
35 | ---- ----
36 | |
37 | this parameter and the return type are declared with different lifetimes...
e74abb32 38LL | f
5099ac24 39 | ^ ...but data from `f` is returned here
e1599b0c
XL
40
41error[E0623]: lifetime mismatch
04454e1e 42 --> $DIR/ref-struct-async.rs:40:9
e1599b0c
XL
43 |
44LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
5099ac24
FG
45 | ---- ----
46 | |
47 | this parameter and the return type are declared with different lifetimes...
e74abb32 48LL | f
5099ac24 49 | ^ ...but data from `f` is returned here
e1599b0c
XL
50
51error: aborting due to 5 previous errors
52
60c5eb7d 53For more information about this error, try `rustc --explain E0623`.