@@ -2,65 +2,65 @@ error[E0623]: lifetime mismatch
22 --> $DIR/lt-ref-self-async.rs:13:9
33 |
44LL | async fn ref_self(&self, f: &u32) -> &u32 {
5- | ----- ----
6- | | |
7- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
8- | this parameter and the returned future are declared with different lifetimes...
5+ | ---- ----
6+ | | |
7+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
8+ | this parameter and the returned future are declared with different lifetimes...
99LL | f
1010 | ^ ...but data from `f` is held across an await point here
1111
1212error[E0623]: lifetime mismatch
1313 --> $DIR/lt-ref-self-async.rs:19:9
1414 |
1515LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
16- | ----- ----
17- | | |
18- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
19- | this parameter and the returned future are declared with different lifetimes...
16+ | ---- ----
17+ | | |
18+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
19+ | this parameter and the returned future are declared with different lifetimes...
2020LL | f
2121 | ^ ...but data from `f` is held across an await point here
2222
2323error[E0623]: lifetime mismatch
2424 --> $DIR/lt-ref-self-async.rs:23:9
2525 |
2626LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
27- | ----- ----
28- | | |
29- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
30- | this parameter and the returned future are declared with different lifetimes...
27+ | ---- ----
28+ | | |
29+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
30+ | this parameter and the returned future are declared with different lifetimes...
3131LL | f
3232 | ^ ...but data from `f` is held across an await point here
3333
3434error[E0623]: lifetime mismatch
3535 --> $DIR/lt-ref-self-async.rs:27:9
3636 |
3737LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
38- | ----- ----
39- | | |
40- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
41- | this parameter and the returned future are declared with different lifetimes...
38+ | ---- ----
39+ | | |
40+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
41+ | this parameter and the returned future are declared with different lifetimes...
4242LL | f
4343 | ^ ...but data from `f` is held across an await point here
4444
4545error[E0623]: lifetime mismatch
4646 --> $DIR/lt-ref-self-async.rs:31:9
4747 |
4848LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
49- | ----- ----
50- | | |
51- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
52- | this parameter and the returned future are declared with different lifetimes...
49+ | ---- ----
50+ | | |
51+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
52+ | this parameter and the returned future are declared with different lifetimes...
5353LL | f
5454 | ^ ...but data from `f` is held across an await point here
5555
5656error[E0623]: lifetime mismatch
5757 --> $DIR/lt-ref-self-async.rs:35:9
5858 |
5959LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
60- | ----- ----
61- | | |
62- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
63- | this parameter and the returned future are declared with different lifetimes...
60+ | ---- ----
61+ | | |
62+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
63+ | this parameter and the returned future are declared with different lifetimes...
6464LL | f
6565 | ^ ...but data from `f` is held across an await point here
6666
0 commit comments