fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
5.2 KiB117 linesraw
1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2  --> $DIR/ref-mut-self-async.rs:13:46
3   |
4LL |     async fn ref_self(&mut 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-mut-self-async.rs:14:9
11   |
12LL |     async fn ref_self(&mut self, f: &u32) -> &u32 {
13   |                       -
14   |                       |
15   |                       lifetime `'_` defined here
16   |                       lifetime `'_` defined here
17LL |         f
18   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
19
20error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
21  --> $DIR/ref-mut-self-async.rs:19:52
22   |
23LL |     async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
24   |                                                    ^^^^
25   |
26   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
27
28error: lifetime may not live long enough
29  --> $DIR/ref-mut-self-async.rs:20:9
30   |
31LL |     async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
32   |                             -
33   |                             |
34   |                             lifetime `'_` defined here
35   |                             lifetime `'_` defined here
36LL |         f
37   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
38
39error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
40  --> $DIR/ref-mut-self-async.rs:23:61
41   |
42LL |     async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
43   |                                                             ^^^^
44   |
45   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
46
47error: lifetime may not live long enough
48  --> $DIR/ref-mut-self-async.rs:24:9
49   |
50LL |     async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
51   |                                     -
52   |                                     |
53   |                                     lifetime `'_` defined here
54   |                                     lifetime `'_` defined here
55LL |         f
56   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
57
58error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
59  --> $DIR/ref-mut-self-async.rs:27:61
60   |
61LL |     async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
62   |                                                             ^^^^
63   |
64   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
65
66error: lifetime may not live long enough
67  --> $DIR/ref-mut-self-async.rs:28:9
68   |
69LL |     async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
70   |                                     -
71   |                                     |
72   |                                     lifetime `'_` defined here
73   |                                     lifetime `'_` defined here
74LL |         f
75   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
76
77error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
78  --> $DIR/ref-mut-self-async.rs:31:70
79   |
80LL |     async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
81   |                                                                      ^^^^
82   |
83   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
84
85error: lifetime may not live long enough
86  --> $DIR/ref-mut-self-async.rs:32:9
87   |
88LL |     async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
89   |                                             -
90   |                                             |
91   |                                             lifetime `'_` defined here
92   |                                             lifetime `'_` defined here
93LL |         f
94   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
95
96error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
97  --> $DIR/ref-mut-self-async.rs:35:70
98   |
99LL |     async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
100   |                                                                      ^^^^
101   |
102   = note: hidden type `impl std::future::Future` captures lifetime '_#15r
103
104error: lifetime may not live long enough
105  --> $DIR/ref-mut-self-async.rs:36:9
106   |
107LL |     async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
108   |                                             -
109   |                                             |
110   |                                             lifetime `'_` defined here
111   |                                             lifetime `'_` defined here
112LL |         f
113   |         ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
114
115error: aborting due to 12 previous errors
116
117For more information about this error, try `rustc --explain E0700`.