]> git.proxmox.com Git - rustc.git/blame - tests/ui/self/elision/ref-self-async.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / self / elision / ref-self-async.stderr
CommitLineData
ba9703b0 1error: lifetime may not live long enough
923072b8 2 --> $DIR/ref-self-async.rs:23:9
e1599b0c 3 |
ba9703b0
XL
4LL | async fn ref_self(&self, f: &u32) -> &u32 {
5 | - - let's call the lifetime of this reference `'1`
6 | |
7 | let's call the lifetime of this reference `'2`
8LL | f
9 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
10 |
11help: consider introducing a named lifetime parameter and update trait if needed
12 |
13LL | async fn ref_self<'a>(&'a self, f: &'a u32) -> &u32 {
14 | ++++ ++ ++
ba9703b0
XL
15
16error: lifetime may not live long enough
923072b8 17 --> $DIR/ref-self-async.rs:30:9
ba9703b0
XL
18 |
19LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
20 | - - let's call the lifetime of this reference `'1`
21 | |
22 | let's call the lifetime of this reference `'2`
23LL | f
24 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
25 |
26help: consider introducing a named lifetime parameter and update trait if needed
27 |
28LL | async fn ref_Self<'a>(self: &'a Self, f: &'a u32) -> &u32 {
29 | ++++ ++ ++
ba9703b0
XL
30
31error: lifetime may not live long enough
923072b8 32 --> $DIR/ref-self-async.rs:35:9
e74abb32 33 |
ba9703b0
XL
34LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
35 | - - let's call the lifetime of this reference `'1`
36 | |
37 | let's call the lifetime of this reference `'2`
38LL | f
39 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
40 |
41help: consider introducing a named lifetime parameter and update trait if needed
42 |
43LL | async fn box_ref_Self<'a>(self: Box<&'a Self>, f: &'a u32) -> &u32 {
44 | ++++ ++ ++
ba9703b0
XL
45
46error: lifetime may not live long enough
923072b8 47 --> $DIR/ref-self-async.rs:40:9
ba9703b0
XL
48 |
49LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
50 | - - let's call the lifetime of this reference `'1`
51 | |
52 | let's call the lifetime of this reference `'2`
53LL | f
54 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
55 |
56help: consider introducing a named lifetime parameter and update trait if needed
57 |
58LL | async fn pin_ref_Self<'a>(self: Pin<&'a Self>, f: &'a u32) -> &u32 {
59 | ++++ ++ ++
ba9703b0
XL
60
61error: lifetime may not live long enough
923072b8 62 --> $DIR/ref-self-async.rs:45:9
ba9703b0
XL
63 |
64LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
65 | - - let's call the lifetime of this reference `'1`
66 | |
67 | let's call the lifetime of this reference `'2`
68LL | f
69 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
70 |
71help: consider introducing a named lifetime parameter and update trait if needed
72 |
73LL | async fn box_box_ref_Self<'a>(self: Box<Box<&'a Self>>, f: &'a u32) -> &u32 {
74 | ++++ ++ ++
ba9703b0
XL
75
76error: lifetime may not live long enough
923072b8 77 --> $DIR/ref-self-async.rs:50:9
ba9703b0
XL
78 |
79LL | async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
80 | - - let's call the lifetime of this reference `'1`
81 | |
82 | let's call the lifetime of this reference `'2`
83LL | f
84 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
85 |
86help: consider introducing a named lifetime parameter and update trait if needed
87 |
88LL | async fn box_pin_ref_Self<'a>(self: Box<Pin<&'a Self>>, f: &'a u32) -> &u32 {
89 | ++++ ++ ++
ba9703b0
XL
90
91error: lifetime may not live long enough
923072b8 92 --> $DIR/ref-self-async.rs:55:9
ba9703b0
XL
93 |
94LL | async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
95 | - - let's call the lifetime of this reference `'1`
96 | |
97 | let's call the lifetime of this reference `'2`
98LL | f
99 | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
923072b8
FG
100 |
101help: consider introducing a named lifetime parameter and update trait if needed
102 |
103LL | async fn wrap_ref_Self_Self<'a>(self: Wrap<&'a Self, Self>, f: &'a u8) -> &u8 {
104 | ++++ ++ ++
e1599b0c 105
ba9703b0 106error: aborting due to 7 previous errors
e1599b0c 107