| error[E0623]: lifetime mismatch |
| --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:8:45 |
| | |
| LL | async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f } |
| | ---- ^^^^ |
| | | | |
| | | ...but data from `f` is returned here |
| | this parameter and the return type are declared with different lifetimes... |
| |
| error[E0623]: lifetime mismatch |
| --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:11:55 |
| | |
| LL | async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) } |
| | ----- ^^^^^^^^^^^^^^^^^ |
| | | | |
| | | ...but data from `f` is returned here |
| | this parameter and the return type are declared with different lifetimes... |
| |
| error[E0623]: lifetime mismatch |
| --> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:17:58 |
| | |
| LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } |
| | ----- ^^^ |
| | | | |
| | | ...but data from `arg` is returned here |
| | this parameter and the return type are declared with different lifetimes... |
| |
| error: aborting due to 3 previous errors |
| |