fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
6.3 KiB143 linesraw
1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2  --> $DIR/ref-self-async.rs:22:42
3   |
4LL |     async fn ref_self(&self, f: &u32) -> &u32 {
5   |                                          ^^^^
6   |
7   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
8
9error: lifetime may not live long enough
10  --> $DIR/ref-self-async.rs:22:47
11   |
12LL |       async fn ref_self(&self, f: &u32) -> &u32 {
13   |  _______________________-_______________________^
14   | |                       |
15   | |                       lifetime `'_` defined here
16   | |                       lifetime `'_` defined here
17LL | |         f
18LL | |     }
19   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
20
21error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
22  --> $DIR/ref-self-async.rs:28:48
23   |
24LL |     async fn ref_Self(self: &Self, f: &u32) -> &u32 {
25   |                                                ^^^^
26   |
27   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
28
29error: lifetime may not live long enough
30  --> $DIR/ref-self-async.rs:28:53
31   |
32LL |       async fn ref_Self(self: &Self, f: &u32) -> &u32 {
33   |  _____________________________-_______________________^
34   | |                             |
35   | |                             lifetime `'_` defined here
36   | |                             lifetime `'_` defined here
37LL | |         f
38LL | |     }
39   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
40
41error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
42  --> $DIR/ref-self-async.rs:32:57
43   |
44LL |     async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
45   |                                                         ^^^^
46   |
47   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
48
49error: lifetime may not live long enough
50  --> $DIR/ref-self-async.rs:32:62
51   |
52LL |       async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
53   |  _____________________________________-________________________^
54   | |                                     |
55   | |                                     lifetime `'_` defined here
56   | |                                     lifetime `'_` defined here
57LL | |         f
58LL | |     }
59   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
60
61error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
62  --> $DIR/ref-self-async.rs:36:57
63   |
64LL |     async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
65   |                                                         ^^^^
66   |
67   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
68
69error: lifetime may not live long enough
70  --> $DIR/ref-self-async.rs:36:62
71   |
72LL |       async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
73   |  _____________________________________-________________________^
74   | |                                     |
75   | |                                     lifetime `'_` defined here
76   | |                                     lifetime `'_` defined here
77LL | |         f
78LL | |     }
79   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
80
81error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
82  --> $DIR/ref-self-async.rs:40:66
83   |
84LL |     async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
85   |                                                                  ^^^^
86   |
87   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
88
89error: lifetime may not live long enough
90  --> $DIR/ref-self-async.rs:40:71
91   |
92LL |       async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
93   |  _____________________________________________-_________________________^
94   | |                                             |
95   | |                                             lifetime `'_` defined here
96   | |                                             lifetime `'_` defined here
97LL | |         f
98LL | |     }
99   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
100
101error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
102  --> $DIR/ref-self-async.rs:44:66
103   |
104LL |     async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
105   |                                                                  ^^^^
106   |
107   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
108
109error: lifetime may not live long enough
110  --> $DIR/ref-self-async.rs:44:71
111   |
112LL |       async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
113   |  _____________________________________________-_________________________^
114   | |                                             |
115   | |                                             lifetime `'_` defined here
116   | |                                             lifetime `'_` defined here
117LL | |         f
118LL | |     }
119   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
120
121error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
122  --> $DIR/ref-self-async.rs:48:69
123   |
124LL |     async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
125   |                                                                     ^^^
126   |
127   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
128
129error: lifetime may not live long enough
130  --> $DIR/ref-self-async.rs:48:73
131   |
132LL |       async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
133   |  ____________________________________________-____________________________^
134   | |                                            |
135   | |                                            lifetime `'_` defined here
136   | |                                            lifetime `'_` defined here
137LL | |         f
138LL | |     }
139   | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
140
141error: aborting due to 14 previous errors
142
143For more information about this error, try `rustc --explain E0700`.