3 #![feature(return_position_impl_trait_in_trait)]
4 #![allow(incomplete_features)]
6 use std::future::Future;
9 fn async_fn(&self, buff: &[u8]) -> impl Future<Output = Vec<u8>>;
14 impl AsyncTrait for Struct {
15 fn async_fn<'a>(&self, buff: &'a [u8]) -> impl Future<Output = Vec<u8>> + 'a {
16 //~^ ERROR `impl` item signature doesn't match `trait` item signature
17 async move { buff.to_vec() }