1
Fork 0

Allow desugaring async fn in trait to compatible, concrete future types

This commit is contained in:
Michael Goulet 2024-01-18 16:39:20 +00:00
commit 16cbdd0321
9 changed files with 15 additions and 77 deletions

View file

@ -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
}
}