1
Fork 0

Update Tests

This commit is contained in:
Veera 2024-05-05 17:39:07 -04:00
parent 9c9b568792
commit 4271383e1d
4 changed files with 101 additions and 6 deletions

View file

@ -29,14 +29,14 @@ async fn return_targets_async_block_not_async_fn() -> u8 {
fn no_break_in_async_block() {
async {
break 0u8; //~ ERROR `break` inside of an `async` block
break 0u8; //~ ERROR `break` inside `async` block
};
}
fn no_break_in_async_block_even_with_outer_loop() {
loop {
async {
break 0u8; //~ ERROR `break` inside of an `async` block
break 0u8; //~ ERROR `break` inside `async` block
};
}
}