Allow desugaring async fn in trait to compatible, concrete future types
This commit is contained in:
parent
ea37e8091f
commit
16cbdd0321
9 changed files with 15 additions and 77 deletions
|
@ -8,7 +8,7 @@ trait MyTrait {
|
|||
|
||||
impl MyTrait for i32 {
|
||||
fn foo(&self) -> i32 {
|
||||
//~^ ERROR: method `foo` should be async
|
||||
//~^ ERROR: `i32` is not a future
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue