Restore impl Future<Output = Type>
to async blocks
This commit is contained in:
parent
a40c595695
commit
7b2eaa3d8f
13 changed files with 36 additions and 23 deletions
|
@ -24,7 +24,7 @@ async fn return_targets_async_block_not_async_fn() -> u8 {
|
|||
return 0u8;
|
||||
};
|
||||
let _: &dyn Future<Output = ()> = █
|
||||
//~^ ERROR type mismatch resolving `<impl Future as Future>::Output == ()`
|
||||
//~^ ERROR type mismatch resolving `<impl Future<Output = u8> as Future>::Output == ()`
|
||||
}
|
||||
|
||||
fn no_break_in_async_block() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue