error: return type captures more lifetimes than trait definition --> $DIR/signature-mismatch.rs:17:47 | LL | fn async_fn<'a>(&self, buff: &'a [u8]) -> impl Future> + 'a { | -- this lifetime was captured ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: hidden type must only reference lifetimes captured by this impl trait --> $DIR/signature-mismatch.rs:11:40 | LL | fn async_fn(&self, buff: &[u8]) -> impl Future>; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: hidden type inferred to be `impl Future> + 'a` error: aborting due to previous error