|
| 1 | +error[E0106]: missing lifetime specifier |
| 2 | + --> $DIR/lt-ref-self-async.rs:15:42 |
| 3 | + | |
| 4 | +LL | async fn ref_self(&self, f: &u32) -> &u32 { |
| 5 | + | ^ |
| 6 | + | |
| 7 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 8 | + |
| 9 | +error[E0106]: missing lifetime specifier |
| 10 | + --> $DIR/lt-ref-self-async.rs:23:48 |
| 11 | + | |
| 12 | +LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 { |
| 13 | + | ^ |
| 14 | + | |
| 15 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 16 | + |
| 17 | +error[E0106]: missing lifetime specifier |
| 18 | + --> $DIR/lt-ref-self-async.rs:29:57 |
| 19 | + | |
| 20 | +LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 { |
| 21 | + | ^ |
| 22 | + | |
| 23 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 24 | + |
| 25 | +error[E0106]: missing lifetime specifier |
| 26 | + --> $DIR/lt-ref-self-async.rs:35:57 |
| 27 | + | |
| 28 | +LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 { |
| 29 | + | ^ |
| 30 | + | |
| 31 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 32 | + |
| 33 | +error[E0106]: missing lifetime specifier |
| 34 | + --> $DIR/lt-ref-self-async.rs:41:66 |
| 35 | + | |
| 36 | +LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 { |
| 37 | + | ^ |
| 38 | + | |
| 39 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 40 | + |
| 41 | +error[E0106]: missing lifetime specifier |
| 42 | + --> $DIR/lt-ref-self-async.rs:47:62 |
| 43 | + | |
| 44 | +LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 { |
| 45 | + | ^ |
| 46 | + | |
| 47 | + = note: return-position elided lifetimes require exactly one input-position elided lifetime, found multiple. |
| 48 | + |
| 49 | +error: cannot infer an appropriate lifetime |
| 50 | + --> $DIR/lt-ref-self-async.rs:15:30 |
| 51 | + | |
| 52 | +LL | async fn ref_self(&self, f: &u32) -> &u32 { |
| 53 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 54 | + | | |
| 55 | + | ...but this borrow... |
| 56 | + | |
| 57 | +note: ...can't outlive the lifetime '_ as defined on the method body at 15:23 |
| 58 | + --> $DIR/lt-ref-self-async.rs:15:23 |
| 59 | + | |
| 60 | +LL | async fn ref_self(&self, f: &u32) -> &u32 { |
| 61 | + | ^ |
| 62 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 15:23 |
| 63 | + | |
| 64 | +LL | async fn ref_self(&self, f: &u32) -> &u32 + '_ { |
| 65 | + | ^^^^^^^^^ |
| 66 | + |
| 67 | +error: cannot infer an appropriate lifetime |
| 68 | + --> $DIR/lt-ref-self-async.rs:23:36 |
| 69 | + | |
| 70 | +LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 { |
| 71 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 72 | + | | |
| 73 | + | ...but this borrow... |
| 74 | + | |
| 75 | +note: ...can't outlive the lifetime '_ as defined on the method body at 23:29 |
| 76 | + --> $DIR/lt-ref-self-async.rs:23:29 |
| 77 | + | |
| 78 | +LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 { |
| 79 | + | ^ |
| 80 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 23:29 |
| 81 | + | |
| 82 | +LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 + '_ { |
| 83 | + | ^^^^^^^^^ |
| 84 | + |
| 85 | +error: cannot infer an appropriate lifetime |
| 86 | + --> $DIR/lt-ref-self-async.rs:29:45 |
| 87 | + | |
| 88 | +LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 { |
| 89 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 90 | + | | |
| 91 | + | ...but this borrow... |
| 92 | + | |
| 93 | +note: ...can't outlive the lifetime '_ as defined on the method body at 29:37 |
| 94 | + --> $DIR/lt-ref-self-async.rs:29:37 |
| 95 | + | |
| 96 | +LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 { |
| 97 | + | ^ |
| 98 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 29:37 |
| 99 | + | |
| 100 | +LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 + '_ { |
| 101 | + | ^^^^^^^^^ |
| 102 | + |
| 103 | +error: cannot infer an appropriate lifetime |
| 104 | + --> $DIR/lt-ref-self-async.rs:35:45 |
| 105 | + | |
| 106 | +LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 { |
| 107 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 108 | + | | |
| 109 | + | ...but this borrow... |
| 110 | + | |
| 111 | +note: ...can't outlive the lifetime '_ as defined on the method body at 35:37 |
| 112 | + --> $DIR/lt-ref-self-async.rs:35:37 |
| 113 | + | |
| 114 | +LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 { |
| 115 | + | ^ |
| 116 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 35:37 |
| 117 | + | |
| 118 | +LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 + '_ { |
| 119 | + | ^^^^^^^^^ |
| 120 | + |
| 121 | +error: cannot infer an appropriate lifetime |
| 122 | + --> $DIR/lt-ref-self-async.rs:41:54 |
| 123 | + | |
| 124 | +LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 { |
| 125 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 126 | + | | |
| 127 | + | ...but this borrow... |
| 128 | + | |
| 129 | +note: ...can't outlive the lifetime '_ as defined on the method body at 41:45 |
| 130 | + --> $DIR/lt-ref-self-async.rs:41:45 |
| 131 | + | |
| 132 | +LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 { |
| 133 | + | ^ |
| 134 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 41:45 |
| 135 | + | |
| 136 | +LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 + '_ { |
| 137 | + | ^^^^^^^^^ |
| 138 | + |
| 139 | +error: cannot infer an appropriate lifetime |
| 140 | + --> $DIR/lt-ref-self-async.rs:47:50 |
| 141 | + | |
| 142 | +LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 { |
| 143 | + | ^ ---- this return type evaluates to the `'static` lifetime... |
| 144 | + | | |
| 145 | + | ...but this borrow... |
| 146 | + | |
| 147 | +note: ...can't outlive the lifetime '_ as defined on the method body at 47:41 |
| 148 | + --> $DIR/lt-ref-self-async.rs:47:41 |
| 149 | + | |
| 150 | +LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 { |
| 151 | + | ^ |
| 152 | +help: you can add a constraint to the return type to make it last less than `'static` and match the lifetime '_ as defined on the method body at 47:41 |
| 153 | + | |
| 154 | +LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 + '_ { |
| 155 | + | ^^^^^^^^^ |
| 156 | + |
| 157 | +error: aborting due to 12 previous errors |
| 158 | + |
| 159 | +For more information about this error, try `rustc --explain E0106`. |
0 commit comments