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