3 #![feature(async_fn_in_trait)]
4 #![allow(incomplete_features)]
6 use std::future::Future;
9 async fn foo(&self) -> i32;
12 impl MyTrait for i32 {
13 fn foo(&self) -> impl Future<Output = i32> {
14 //~^ ERROR `impl Trait` only allowed in function and inherent method return types, not in `impl` method return [E0562]