Update Tests
This commit is contained in:
parent
9c9b568792
commit
4271383e1d
4 changed files with 101 additions and 6 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue